Please help me
cout<<"Please Enter the Values:\n";
The Program Gets Teriminated if we give any character.but it should come out of the loop rather than terminating.
While it is terminated .The program exits .Please help me
Originally Posted by Adak
Originally Posted by Salem
Frequently Quite Prolix
If you cin into a number and type something (like a letter) that cin can't figure out how to convert into a number, it will fail, leaving the variable you were reading into untouched and cin in a fail state.
See e.g. Why it can't read in a number?
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/