I'm having a problem keeping my Dos window open while I add the line
cin.get();
before return 0
Where is my fault please ??
I'm having a problem keeping my Dos window open while I add the line
cin.get();
before return 0
Where is my fault please ??
Most likely you use cin>> elsewhere in your code and there's a leftover newline when you get to the get() call. The problem isn't your solution, but previous input. The simples solution is to add another call to cin.get() right after the first one.
My best code is written with the delete key.
U cud but thats a bit risky instead use the function cin.ignore(1,'\n') to get rid of the new line in the buffer and use get normally.
Thanks Guys
You are really great here !