here is the code for you:
[CODE]#include <iostream>
#include <string>
using namespace std;
int main(int argc, char ** argv)
{
string command;
while(1)
{
getline(cin, command);
if(command == "exit")
break;
system(command.c_str()); //this an extrem example.
}
return 0;
}[/CODE]