I was wondering if it would be possible to create a pause that will only continue after a keystroke.
Sort of like our little friend system("pause"), except, I don't want the text "Press any key to continue..."
The user will be presented with, "When ready, press enter to fire." Then, when they press enter the next line will go off.
This can only be done using non-standard functions. The actual solution depends on your OS and compiler, but it is probably something like getch() or _getch().
I'm using Dev C++ 188.8.131.52
OS: Windows XP
Probably use cin.get() to wait for user to press enter.
to use getch() make sure you include the header <conio.h>
Here's a possibility...
using namespace std;
char array="When ready press enter to fire";
char array1="woot you have started the game";
cin.get(); // this is what to need
void slow_type(char stuff)
int size = strlen(stuff);
for (int i=0; i<size; i++)
try something like:
system("pause > tmp");