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

Help, Simple 2D array Game
 
Hey all, I need some help on first 2D array game. To make this game I just took a simple approach making a drawing function that draws the array, and a functio...
[2 replies] Last: ^^Thanks alot worked like a charm (by BruteCOder)
by orxshi
But it is a constant already!!!
 
Hi all. There are header and source files storing input data. Similarly there are header and source files storing structures. Now I have 2 questions: 1) ...
[3 replies] Last: You can define the constants in the header. The linker won't complain. (by helios)
Switch statement help please !
 
I am trying to make a bracket operator and I can not get this switch statement to work properly. character is type char. Stack<char> unmatched; ...
[1 reply] : use single quote for char type. (by EricDu)
Lookup speed of data in a vector of classes vs. two-dimensional vector
 
Hi all, I have a program which first creates a large (~100MB) table of values, and then spends the rest of its time looking up data from that table. Right no...
[3 replies] Last: I just mean looking things up by index. It sounds like they way I am d... (by geraeds)
Editing input values
 
I am working on my C++ mid-term and am having a total brain meltdown. I am being asked to create a linear straight-line (no functions) program to calculate m...
[5 replies] Last: Great idea! That is what I am going to do. Then it won't be a continuo... (by EleventhHourZero)
I need assistance so badly, i need somebody's brain right now
 
I was given a question some time ago that I am not sure of how to answer, the question is typed below: can anyone give me an idea of how i should go about doing...
[2 replies] Last: thank you for your assistance Disch (by melonQheadQsheep)
Problems with generating random numbers
 
I've been writing a very simple chatbot but I'm stuck on generating random responses. I'm attempting to generate a random number between 1 and 5, and each numbe...
[4 replies] Last: You'll also need to break; each of your cases in your switch stateme... (by Disch)
how to use the do while loop to only accept a valid number and go back to the original question if not a valid number
 
I was given an assignment that asked this "Write a program that accepts a positive integer between 2 to 15, and then using the number, calculate its factorial (...
[1 reply] : Break the problem down into 3 chunks. 1) gather input 2) do the calcu... (by JMJAtlanta)
desperately need c++ help
 
My coffee keeps getting cold. And I even have one of the mugs that is tall and skinny rather than wide and shallow. Also, I keep brewing a full batch on a half ...
[3 replies] Last: Embrace the Frappé: http://en.wikipedia.org/wiki/Frappé_coffee (by Galik)
Help! C++ Question
 
I'm taking an online C++ class, and if any of you have had experience with that, you know it's difficult. I can never see the instructor in person, and he's ter...
[5 replies] Last: I agree that the teacher is not asking you to write any code, but I be... (by ceruleus)
how to get multiple results in a linear search
 
hi, my c++ prof gave an exercise to make a movie database of 10 movies including movie title, year, director and genre, now I manage to do all that but im havin...
[3 replies] Last: its okay ^_^ everyone's gotta start somewhere. i glad i did help you, ... (by Ng Han Seng)
Help with Pig Latin Game
 
Hello, I'm working on a simple Game for class but can't seem to correct my runtime error. It is supposed to calculate to Pig Latin via the use of a Vector, It...
[2 replies] Last: Ok, I see. Thank you. I found another method of doing it which I'm goi... (by XDosShane)
Help with a Rudimentary Speller
 
Hi. I want to create a speller that will read in a txt file called Plain and read in a dictionary txt file called words. Then I want to check each word in the...
[1 reply] : I don't see you building your dictionary first, which I would want to ... (by Azagaros)
RPN Calculator with undo and redo
 
I have to follow the Command Pattern in making a reverse polish notation calculator in C++. It needs to do undo and redo. It's due tomorrow morning so I've been...
[2 replies] Last: The way these things are usually implemented is like this: the calcula... (by helios)
Can someone tell me why this isn't working? Should be reading last name alphabetically?
 
Okay, so my teacher wants us to have the first name and last name in alphabetical order print out. I am getting the first one, Angie, to print out...but I canno...
[3 replies] Last: Can we see the new code? (In [co de] tags, please) (by shacktar)
LNK2005
 
Trying to brush up on my C++ but I'm having some link errors. Suggestions welcomed :p Errors: Error 1 error LNK2005: "void __cdecl chooserand(void)" (?cho...
[2 replies] Last: Thank you, this resolved my problems. No idea why I named it main o.0... (by dfurball)
by Rudy13
lotto code
 
i have four erros im trying to find what they are but everytime i think i correct it it says i have more errors please help 1>------ Build started: Project: ...
[1 reply] : Newer topic: http://www.cplusplus.com/forum/windows/53449/ (by shacktar)
Writing Hex into file with given offset
 
I am pretty new to dealing with hex in programming, and have been running into some problems. I now have no problem reading the file where I want to, but wri...
[no replies]
by jackie
Find String in Nested Structs
 
just wondering how can i find a String within 2 Structs ? EG.. Enter Town your looking for ? cin >> New York Enter Town 2 your looking for ? cin >...
[no replies]
void functions
 
i started learning about void functions and i want to make sure i do my homework right. i need to modify a program so that it uses 2 void functions. one to det...
[2 replies] Last: the () is known as the parameter list. So if fat percent is fatCals / ... (by ceruleus)
October 2011 Pages: 1... 45678... 36
  Archived months: [sep2011] [nov2011]

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