how to write a program in C++ whitch run system commands

Undersand of system commands for instance
mem.exe
mplayer2
rsop.msc
regedt32
cmd.exe
,and more
I now this is not difficulty but I'm a begginer
I hope to help me.Thank you
maybe will help this:
1
2
3
4
5
6
7
#include <iostream> 
using namespace std;
int main (int argc, char *argv [])
{
    system ("regedit"); 
    return 0;
}
Thank you
Topic archived. No new replies allowed.