-
Simple CPP (i think)
im trying to write a fairly simple program and i was wondering if there was a way to easily run a program from inside a simple console program. like what can be done through (in windows)
start menu>>run
well, im not sure that this is easy, so if it's hard, just say so
-
system("pathname.exe");
That should work.
-
are there any headers i need to include?
when i try to compile it says:
implicit declaration of function `int system(...)'
-
#include <stdlib.h>
int system(const char *command);
for more info, read in the .h file or type stdlib.h in search engine.