
please wait
However once I debug the code and enter a value, the box disappears. |
cin.ignore();
after cin.get();
getch();
instead of cinget(); cin.ignore();
but don t forget to #include <conio.h>
cin >>n;
there is a newline character remaining in the input buffer. cin.get();
statement will retrieve that newline, and the program continues. if you want the program to wait, add a second cin.get();
after that.