12-19-2011, 03:07 AM
(12-18-2011, 11:11 PM)Jacob_ Wrote: C++ strings are different from C strings, which leads to a lot of confusing bugs like that... It's why I switched to Java. Good luck.
You switched to Java just because of the strings? Really? How often do you use strings, anyway?
Anyways, to Roperson, try this:
Code:
std::string exe = "net.exe ";
exe += USER_INPUT;
system(exe.c_str());
Sorry about my previous post.