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);
}