   Curious about the syntax of simple command...
  Hi I was wondering how to add user input to the system() function in cstdlibfor instance:cin >> something;system("del c:\windows\" << something);would that be correct? 
  No, but this should work, I believe:std::string Something;std::string Command;cin >> Something;Command = "del c:\\Windows\\" + Something;system(Command.c_str());   [Edit - Well, it wouldn't work, but it should now.]   [edited by - Agony on February 17, 2004 1:49:20 PM];  Note to self: Never run any of dmf_king''s programs. 