What does the system(); command take as an argument? I tried string, but that doesn't exactly work. An array maybe?
Printable View
What does the system(); command take as an argument? I tried string, but that doesn't exactly work. An array maybe?
It takes a character array.
If you have a string just use .c_str():
std::string command("pause");
system(command.c_str());
Works like a charm, thanks a bunch!