Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
System function (C++)
#8
(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.
Reply


Messages In This Thread
System function (C++) - by Dignity - 12-17-2011, 02:51 AM

Forum Jump:


Users browsing this thread: 5 Guest(s)