int main() { string get; string again; string ret; do { cout << "Type Qbasic get C++" << endl;
getline (cin, get);
if (get == "rint" { ret = "cout <<"; } else if (get == "input" { ret = "cin >>"; } cout << ret << endl;
cout << "Again(y, n)?\\\\";
cin >> again;
if (again == "y" {
} else {
} return 0; } while (again != "n" }
I formated the code a bit more readable...the system("Pause" stoped it from building I think but a few missing brackets and such wouldn't let my code compile....also I don't think your code could have compiled since it had too many syntax errors. What IDE do you use?