using namespace std;//before main

system("pause");//before return whatever

return whatever;