Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string command;
- char * szcommand;
- while(true)
- {
- cout << ">";
- cin >> command;
- if(command == ""){return 0;}
- szcommand = new char[command.length() + 1];
- strcpy(szcommand, command.c_str());
- system(szcommand);
- delete [] szcommand;
- cout << endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment