Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstdlib>
- int main() {
- std::string line;
- for ( ; ; ) {
- std::cout << "$> ";
- std::getline(std::cin, line);
- if ( line == "end" || std::cin.eof() ) break;
- std::system(line.c_str());
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement