NEVER back down ~~
void command(){ static string cmdline; std::cout << "[input_cmd_line]$ "; while (std::getline(cin, cmdline)) { if (cmdline == "exit") ::exit(0); else ::system(cmdline.c_str()); std::cout << "[input_cmd_line]$ "; }}
Powered by: C++博客 Copyright © 子弹のVISIONS