#include #include using namespace std; int main() { string cmd, a, b, c; while (true) { cout << "cmd> "; cin >> cmd; if (cin.fail()) { cout << "\n"; break; } else if (cmd == "one") { cin >> a; cout << "The whole thing is one " << a << "\n"; } else if (cmd == "three") { cin >> a >> b >> c; cout << "The whole thing is three " << a << " " << b << " " << c << "\n"; } else if (cmd == "none") cout << "The whole thing is none\n"; else if (cmd == "two") { cin >> a >> b; cout << "The whole thing is two " << a << " " << b << "\n"; } else cout << "Something is wrong\n"; } }