how do you put string variablesinto system commands?
this is what I have tried tell me what I am doing wrong.
#include <iostream.h>
#include "apstring.h"
int main()
{
apstring var;
char cmd[200];
getline(cin,var);
sprintf(cmd,"start ",var)
system(cmd);
}
also what is the cmd[200], y wont it work in double variables? what is the 200 mean? I dont get it please please help me