is it possible to have a system call that has a variable in it?
eg. if the system call had parameters and you needed input from a user for those parameters?
ie: "g++ main.cpp -o main.exe"
If it is possible can you tell me how to do it?
thanks
is it possible to have a system call that has a variable in it?
eg. if the system call had parameters and you needed input from a user for those parameters?
ie: "g++ main.cpp -o main.exe"
If it is possible can you tell me how to do it?
thanks
system() will NOT interpret anything other than a string,
input the variables and compile them into a string using
int sprintf( char *buffer, const char *format [, argument] ... );
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
what header file is system(); declared in?
its probably compiler dependant, try stdlibh.or process.h
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
ok thanks that worked
(stdlib.h)
Steven? you didn't know that man?
everyone knows that you need stdlib.h to use the system() function
lol shaddap :-P