General C++ Programming - October 2011 (Page 29)

Initializing static vectors and nested vectors
 
Basically as the tittle says, how do you Initializing static vectors and nested vectors. I was doing something along the lines of int CReadout::vector.resi...
[2 replies] Last: Yes you are correct CReadout has a static vector member, I tried your ... (by forceface)
extra iteration in for loop when reading from text file
 
The purpose of this little project is to read from a file an address book entry, which includes name, DOB, address, etc... All entries are read correctly, but ...
[6 replies] Last: Ok I see now. Thanks so much guys! (by estex198)
Detecting Specific User Input.
 
Hello, I'm trying to get specific user-input from the user, and I want the user to enter certain words in order to go to other parts of the program. Can anyo...
[5 replies] Last: Nevermind... (by Code Assassin)
nested if statement in a do...while problem
 
hey im working on a program that calculates the trajectory of an object fired at a certain velocity with an angle X. the Program runs perfectly except for the ...
[1 reply] : where time is a double variable type. i check to see if (time == 1... (by Disch)
Search function?
 
I have a program that creates 52 cards, shuffles them, then displays the deck to the screen. Now i have a tricky part! I would like to enter 5 or more cards the...
[8 replies] Last: Well you could put it at the end of the deck but that wouldn't make se... (by amberleef)
3 little questions
 
Language: C IDE: Dev-C++ OS: Windows 7. 1 - How do I remove the "s (Doublequotes) in a string??? (Because the lpszArgument returns the filename with the quotes...
[1 reply] : Up. Please help me :)! (by Sasino97)
Char to String Conversion
 
Hi, I'm converting a character to a string and using Stringstream: string keystring; stringstream ss; ss << firstchar; ss >> keystring; It works...
[1 reply] : >> ignores spaces. You could use getline. Alternatively, you could s... (by hamsterman)
problem with including header files
 
Hi guys I have three header files: OFunction.h which includes a function called fitness(), mWin.h and GSolver.h which contain a class each. I included OFunct...
[4 replies] Last: Thanks a lot. It seems that was the problem. I took the definition to ... (by soheilghafurian)
Replace button with Enter key
 
Hello everyone, i have a question, i have made a little program for my boss, but theres 1 modification i need to make within 1 hour and 20 minutes. my pro...
[1 reply] : This should go to Windows Programming. Anyways - it is possible, but d... (by hanst99)
languages?
 
I have a question for some of the experienced/expert programmers on this site. If you have 2,000+ posts, I'm asking you a question. "How many languages are yo...
[2 replies] Last: Learning programming languages is rather... easy. It takes a while to ... (by hanst99)
Linked list
 
I have for homework assignment to create linked list and menu so user can input new entries as long as he want to. I don't want complete solution, only hints wh...
[3 replies] Last: thank you, that's what i needed. :) (by Tomislav Cundic)
Do While Loop not looping
 
So this is my program, but when I get to the part where the user enters y to try again, it doesnt loop back. #include <iostream> #include <cstdlib> #inc...
[2 replies] Last: Oh yes, thank you. (by aspirewire)
file read from visual c++ but nothing is displayed
 
* * hello.c * This is a simple, introductory OpenGL program. */ #include<stdlib.h> #include <GL/glut.h> #include<iostream> #include<fstream> us...
[no replies]
Namespaces :: or . ?
 
I'm reading a book about C++ programming and I'm a little unsure about one thing, the namespaces. I understand that using for example, std::cout access cout ...
[2 replies] Last: You use the '.' operator if you want to access a function or variable ... (by Pyrius)
list
 
hello, I have tried to fixed the following sort function for my linked list but unfortunately i can't get it to work. What is happening is that it keep dele...
[1 reply] : Duplicate thread: http://www.cplusplus.com/forum/beginner/51980/ (by shacktar)
Need to know
 
I have come to a point in my beginner programming career where I feel comfortable enough to start to program games. I've been trying to learn SDL but I've been ...
[4 replies] Last: using only C++ What do you mean by "only C++"? SDL is C (which can... (by Disch)
How to move a character with arrow keys like in Nethack?
 
Hi, I'm wondering how to move a character around the console using the arrow keys, like in Nethack. This isn't a homework assignment, I'm just fooling around wi...
[3 replies] Last: Adventure games are specifically console stuff... Not really. Grap... (by Disch)
TinyXml - Parsing Gives Bad Strings
 
I'm trying to write a game that uses events inside of XML-files. I made the function: void do_event( string filename, int eventindex ) { //code for loading ...
[2 replies] Last: Woops. Didn't see that. Thanks. (by RedTheGreen)
quiz program, randomized questions
 
Hi. I'm kinda new. I'm writing a program which asks random questions. The idea, is that I have a number of questions, and I generate random numbers which det...
[2 replies] Last: I think I tried an approach similar to what your describing. I made a... (by htirwin)
Visual C++ Simple Program Help
 
I just purchased Ivor Horton's "Beginning Visual C++ 2010" e-book and was attempting one of the practice problems (of which I do not have the solution) and was ...
[1 reply] : Header File so far.... How does it look?? //Specification File (Gol... (by cstokes)
October 2011 Pages: 1... 2728293031... 36
  Archived months: [sep2011] [nov2011]

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