|
-
January 31st, 2004, 02:35 AM
#1
Probably an easy one
Hi,
Suprisingly, I can't find much information on the following:
cout << "Enter the container size (0.48/0.95/3.78/19): ";
cin >> canSize;
Now, say the user just hits enter. What I get is a dead cursor that will not do anything further.
I know this must be something with istream, but I'm not sure where to dig up the info.
Any help?
Thx
-
January 31st, 2004, 04:11 AM
#2
Are you using a loop in the program after the cin statement?
TDM
-
January 31st, 2004, 10:48 AM
#3
One solution is a loop. Another solution is to read in istream one line at a time via std::getline().
Kuphryn
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|