-
how to make it stop
im tring to make this not go away i want it only to go away when i press a button or something
how can i make this possiable?
#include <stdlib.h>
#include <iostream.h>
int main()
{
int x;
time_t hold_time;
hold_time=time(NULL);
cout<<"\n"<<ctime(&hold_time);
return 0;
scanf("%i",&x);
cout<<"good bye"<<x;
exit(0);
}
-
http://www.cprogramming.com/boardfaq.html#pause
... and you might want to think about the positioning of your "return 0" statement...
-
what does return 0; actualy do?
-
From main() it exits your program and returns a completion status of 0 to the operating system, hence my suggestion that you review your somewhat mysterious choice of location!
-
hehe thanx man btw know any sitez were i can find tutorialz on how to creat simple gamez?
-
http://www.gamedev.net/
Is very popular with game writer types.
-
again thanx for helping! as you can see im a newbie at this... hehe