Hello ..
I have a problem with C + +.
Look at this small program ...
How to Make this program when enter Character 's' exit from loop .Code:#include <iostream> #include <windows.h> using namespace std; main () { for ( int i = 0 ; i < 50 ; i ++ ) { cout << i << endl ; Sleep(1000); } cout << "Done! "; getchar (); getchar (); }
without using cin or break . ??