Then
system()
is the function you need.It is simple, only the command has to be passed and it will return 0 if command successfuly executed, 1 otherwise.
syntax:
int system(const char *command);
As system function is declared in stdlib.h, it can be considered a C function. But in C++, stdlib.h is merged into the std namespace and is located in the cstdlib .
No comments:
Post a Comment