Is there a way to pause your program while it's running?
May 1, 2008 at 1:29pm UTC
Is there a way to pause your program while it's running?
May 1, 2008 at 4:58pm UTC
Are U searching for system("PAUSE") kind of thing???
Last edited on May 1, 2008 at 5:18pm UTC
May 1, 2008 at 7:06pm UTC
I would hook your program to a debugger and use breakpoints. This would allow you to inspect the code and variable values while it's running.
A good multi-platform debugger is GDB.
May 2, 2008 at 8:22am UTC
Two interesting answers to a lovely vague question.
How To Ask Questions The Smart Way:
http://www.cplusplus.com/forum/articles/1295/
May 19, 2008 at 1:06am UTC
Use the system("pause>nul"); line to pause it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain()
{
// declaring variables:
int a, b;
int result;
//print out the result:
cout << " Hello World! " ;
//terminate the program:
system("pause>nul" );
return 0;
}
Topic archived. No new replies allowed.