Beginners - May 2011 (Page 32)

How to prevent a program from break line?
 
Is there a way to prevent a program from breaking to the next line after a cin << execution? //Current Output Guess 1: user input : program output ...
[6 replies] Last: i need to avoid breaking the line after user presses enter. if i had t... (by geoff13)
by ascii
Optimizing String Recognition
 
I've created a push-down stack and have a question. on line 83 is there a better way of recognizind that the first 5 letters are push( so i dont have to write...
[10 replies] Last: haha when i started learning c++ i was taught char arrays long before ... (by ascii)
Inventory system again
 
solved thanks!
[1 reply] : Call getline() once for each string you want to read. getline(file, s... (by Zhuge)
Caesar Cipher [Need a hand]
 
Hi all, I started programming in C++ this year with the "Introduction to Programming" module I took. In it, we covered the basics of loops, arrays and functi...
[6 replies] Last: Thanks for your reply. I was wondering what was causing the error. Aft... (by Matt Teddy)
Compare strings to find similar characters
 
//Check Guess for ( int k = 0 ; k < 4 ; k++ ) { int prevCharTorF = 0; //Correct Position AND Color ...
[no replies]
by Janlan
Removing vowels from file! Help
 
I can't figure out where is my mistake. It's stuck in loop... #include <iostream> #include <string> #include <fstream> #include <cctype> using namespa...
[2 replies] Last: Yes...but the i should convert string to char etc etc...without the w... (by Janlan)
inventory System
 
Solved. THANKS!
[1 reply] : Saving, use a file. http://cplusplus.com/doc/tutorial/files/ Returning... (by Zhuge)
got a program i gotta do for a class not working right
 
the program below needs to output information that the user enters but i cant fully correct the problems on it due to the fact that when i run the program and s...
[1 reply] : also in order to get by the medical record number loop you got to ente... (by ATKBlackdawn)
Vector Sizes within For Loops
 
The following code compiles fine, but I think it's the source of my crashes. /** * Method: fillConcavities * Takes a polygon and fills all of the concav...
[no replies]
by WayneC
While loop not incrementing
 
I have a function that is supposed to iterate a payment amount until it equals another variable amount. I think I'm misunderstanding something about while loop...
[4 replies] Last: Thanks both of you for the help. On a whim, I closed Visual Studio 20... (by WayneC)
Making gamez?
 
Elo! Second post! (Woot!!) I can do if statements, and know how to set up a basic "Haii World!" program. I have been looking at some gaming code ( Very sim...
[9 replies] Last: Oops, forgot to look at this topic. Thx lots everyone ;)! (by kong288)
Random number array with sequence
 
I'm thinking of making a small game like Battleship that is set to a grid using two arrays, but when thinking about the setup I got stuck. For a ship, say abou...
[2 replies] Last: Thanks a lot for the help. I'll be starting soon, and it's good to ha... (by shiyongseng)
Mandelbrot Set Program!! HELP!!!
 
Hello! So for my computer science class, we have to write a C++ graphics program to display the Mandelbrot Set ... I have no idea even where to start with t...
[3 replies] Last: Alas, I am not familiar with Quincy and it doesn't seem to make anythi... (by Duthomhas)
by beavey
Display stored bit pattern of float variable
 
Dear all, I have recently come upon an interesting problem: to write a program to access the computer's memory to display the stored bit patterns for arbitr...
[2 replies] Last: Thank you for your reply. I have tried compiling the above code using ... (by beavey)
unresolved external symbol
 
I'm getting the following error: 1>ExampleAIModule.obj : error LNK2001: unresolved external symbol "public: int __thiscall ExampleAIModule::getTop(class BWTA::...
[5 replies] Last: No problem - it's an easy mistake to make. Just be sure you understand... (by anonymous23323124)
Copy Constructor and Assignment Operator
 
Question asked in test. Please help.
[2 replies] Last: However, there are times when a compiler will refuse to provide a defa... (by guestgulkan)
by tonnot
How to convert from string to int, long, double, etc
 
I've viewed some links about the problem. isstringstream can be the solution but if you have a string representing a double the int converter answer 'yes I can...
[no replies]
char Name[6]; How much characters can a user input? Would there be a null-terminator at 5th index?
 
char Name ; How much characters can a user input? Would there be a null-terminator at 5th index?
[4 replies] Last: How much characters can a user input? Would there be a null-terminat... (by Alrededor)
Copying and assigning objects
 
How c
[9 replies] Last: Yeah the thread wasn't long enough for me to href the message tag so I... (by Computergeek01)
Hey Everybody!! Question :-) (1,2)
 
Hello :-) I'm Jen. New to programming & new to the forum. After much research, I've decided C++ is the language I'm going to start with. Although I've heard it ...
[30 replies] Last: This makes no sense. If you don't like higher level abstraction, C or... (by stereoMatching)
May 2011 Pages: 1... 3031323334... 48
  Archived months: [apr2011] [jun2011]

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