View Single Post
Old 06-13-2009, 01:39 PM   #2 (permalink)
jamiemac2005
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: A problem with C++ program

Edit: re-read your code. How are you executing the program?(from an IDE? just through windows? command prompt?)...

Re-Edit:
Found the problem:
Code:
cin >> stone;
You don't specify that the user has to press enter anywhere, so the last cin.get(); just finishes the user input for the above line...

Change it to:
Code:
cin >> stone;
cin.ignore();//ignores the enter and takes the users input
Cheers,
Jamey
__________________

Myspace

Last edited by jamiemac2005; 06-13-2009 at 01:44 PM.
jamiemac2005 is offline   Reply With Quote