Beginners - August 2012 (Page 38)

How to debug error in gobbledook
 
Hi how do you generally approach tackling an error when the compiler gives something like Error: In function `ZNSt6vectorIP7CEntitySaIS1_EE5eraseEN9__gnu_cxx17...
[1 reply] : when I read the title I thought it was an IDE, haha. I've gotten thos... (by Zephilinox)
Preprocessor File?
 
I know this is a ridiculous question but I'm new to C programming (actually just started learning it about two weeks ago so I don't know very much!) Issue:...
[4 replies] Last: I am not very learnt as it comes to programming, but I am getting a st... (by ruyh)
A function that takes information from the user without them pressing enter
 
Is there a function similar to cin that takes a key the user presses and stores it before they press ENTER? This would be helpful for a text based game.
[3 replies] Last: no problem, what were you hoping to do with it anyway? (by Zephilinox)
Passing single dimensional arrays via functions
 
We pass a single dimensional array like this : void func() // some function { int ARR ; ..... func1(ARR); // Passing t...
[6 replies] Last: no problem, good luck (by Zephilinox)
Exercises I don't get it!
 
1) Develop a C++ program that will determine the gross pay for each of several employees. The company pays "straight-time" for the first 40 hours worked by each...
[11 replies] Last: amd pays "time-and-a half" for all hours worked in excess of 40 hours... (by Zephilinox)
by Owain
String comparison
 
Hello. I am writing a chatbot and I am having trouble thinking of a function which would return a percentage of similarity for two strings. At first I though th...
[3 replies] Last: ^^ no problem, glad I could help, it still isn't perfect because Helo ... (by Zephilinox)
For loop help
 
I am trying to figure out how to make a for loop help for my blackjack game so that when the player hits it will automatically give them another card and same f...
[9 replies] Last: Thanks for the quick response. The last thing that I need is to get th... (by BroncoAG)
another stupid question :S
 
hey everybody ...as im a starter i tried to create some single scripts first... so i decided to make a program which gets what ever number the user wants and th...
[8 replies] Last: Yeah, your two main choices are Visual C++ (blurgh) or Code::Blocks (a... (by Zephilinox)
creating a simple program for class
 
hey guys im new in c++ scripting... there is a problem could somebody help me? i tried to script a simple program to get 10 numbers from the user and calculat...
[8 replies] Last: from the code I think he is in Turbo c++(old compiler).Thats why he us... (by Akshit)
Graph plotting
 
Hello, I was wondering if it is possible to plot graphs in C++. I have trying looking online and in self help books but havent be able to find anything. Can ...
[1 reply] : Its possible, but I would assume it would require some GUI programming... (by closed account 4izT0pDG)
C++ if bug?
 
I'm a beginner working on my very first C++ project, a console/text based RPG. I've ran into a problem though. Ok, so at the first part of the game, it ask ...
[1 reply] : if (quest1 == 1); remove the semicolon. same for the others Learn ... (by TheIdeasMan)
LOOP Help!
 
I'm having trouble on how to close my figure. The diamond should be inside the square . but mine is slightly separated from the top and on the sides. can so...
[1 reply] : please give us an example of output that you expect. (by gelatine)
storing user input into array
 
Hi! I am trying to get a grip on arrays, and I have a project that I need to complete. I need to put user input into arrays. I have tried on my own, as well ...
[3 replies] Last: A sample of what you want to do would be something like: char ssid ; ... (by Volatile Pulse)
dev-c++ console
 
I'm using dev-c++ with SDL, and openGL. My program works and I'm manipulating primitives like a boss but I want to know if there's a way to view the console out...
[1 reply] : Why do so many people use dev-c++? But that's not relevant (not to you... (by Volatile Pulse)
[easy] problem, while-loop
 
The following Code is working. But in the book, I am studying it is said, that I should read in two numbers. And when the character 'N ' comes, the while-loop s...
[4 replies] Last: char yn = 'y'; do { cout << "looped message" << endl; cin >> yn; }... (by chipp)
What does inputfile.str() mean?
 
From my textbook, it asks the user to input the infile name cin >> inputfile; infile.open(inputfile.c_str()); Why does it add c_str() after the string vari...
[1 reply] : c_str() converts a string to a const char *. The reason it does this ... (by Hippogriff)
by ozza
[CHALLENGE] Hack this program (1,2)
 
I've made a password protection program with encryption, and I want to see how secure it is. If anyone could come up with any vulnerabilities or improvements pl...
[24 replies] Last: Lynx, if it encrypts it a different way every time then how do you dec... (by ozza)
Program Error and I am unable to identify where?
 
int main() { get_questions(); play(); system ("pause"); return 0; } //***************************************************************...
[2 replies] Last: Thank you very much for your help (by closed account Sh59216C)
by BvsK
OOPs. Idk where to put my fstream and make it into an array
 
I am completely stumped. I have 4 text files that have either Strings(Names) or Ints. There is 1 input per line such as: 1 2 3 4 or Jack Bean Kim Bill ...
[3 replies] Last: Ok, you have to be careful comparing floats, they don't store data exa... (by TheIdeasMan)
by vu2aeo
Array with variable size
 
I have learnt that you cannot initialise an array using a variable size. The following code using an array with a variable size compiles and runs perfectly on m...
[6 replies] Last: I think I found the reason. According to http://gcc.gnu.org/onlinedocs... (by vu2aeo)
August 2012 Pages: 1... 3637383940... 45
  Archived months: [jul2012] [sep2012]

This is an archived page. To post a new message, go to the current page.