View Single Post
  #2 (permalink)  
Old February 26th, 2007, 10:07 AM
Geo121 Geo121 is offline
Friend of Wrox
 
Join Date: Jan 2006
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

considering that you are new to C++ I will give you a simple fix to take care of this otherwise you will have to go back and redo some things which you may not understand and will learn later on as you progress through the learning stages. When you use cin it stops accepting input at white spaces which are tabs spaces or enters. to accept these just use the getline function to accept the whole line and it will work perfect.

~ Geo

~ Don't take life too seriously, you'll never get out alive!
Reply With Quote