don't use system().
for a list, open your start menu, click run, type "cmd" and type "help". anything you can type on the command line can be put into system().
but don't use system(). It opens your program up to potential security flaws and makes your code non-portable... for example, try using the following code:
Code:
#include<cstdlib>
int main()
{
system("clear");
system("cal");
return 0;
}
on my system, it prints:
Code:
August 2005
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
jshao@MCP ~/Programming/C++ $
what does it do on yours?