C++ (Qt)do{ std::string command; std::cin >> command; ...} while (command != "exit");
C++ (Qt)while(!asleep()) sheep++;