#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
string abc;
while (1) {
cout << ">> ";
getline(cin,abc);
system(abc.c_str());
}
}
转载于:https://blog.51cto.com/jamesjim/1341343
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
string abc;
while (1) {
cout << ">> ";
getline(cin,abc);
system(abc.c_str());
}
}
转载于:https://blog.51cto.com/jamesjim/1341343