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!
|