credo dovrebbe andarci il seguente comando:

system("pause");