|
-
December 15th, 2004, 06:26 PM
#3
Re: While Loop ASCII Enter Key
My first suggestion is for usage of indentation.
Your code will be much more attractive to read.
My second is for developing self-confidence.
Make abundant use of instructions like
cout >> "I am here" >> endl;
to find out where your code may go wrong.
After a while you'll be glad and proud of your results.
You will find that answers like these are easy.
A return key is \n.
cin >> c OK!
c = cin.get() Ok!
cin.get >> c No!
JF Jolin
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
|