after compiling in release mode when i click on .exe it flashes away when i debug it in ide(vs 2010) it stays. what can i do so it should stay & not flashed away.
ty for the reply, i am completely a beginner, learning c++ on my own it has been only 5 days.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <conio.h>
#include <stdio.h>
void PressAKeyToContinue()
{
int c;
printf( "\nPress a key to continue..." );
c = getch();
if (c == 0 || c == 224) getch();
}
int main()
{
puts( "Hello world!" );
PressAKeyToContinue();
return 0;
}
this "pressanykeytocountinue" function ,how can i include it in conio.h as another function? please tell me in steps sorry for asking you to me through.