What does the system(); command take as an argument? I tried string, but that doesn't exactly work. An array maybe?
What does the system(); command take as an argument? I tried string, but that doesn't exactly work. An array maybe?
"Um...well..."
-Kyoto Oshiro
It takes a character array.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
If you have a string just use .c_str():
std::string command("pause");
system(command.c_str());
Works like a charm, thanks a bunch!
"Um...well..."
-Kyoto Oshiro