1234567891011
enum INPUT_TYPE { Move_No, Move_Yes, }; INPUT_TYPE input = Move_Yes; if(input == Move_Yes) //code
#include <iostream> #include <string> int main(void) { std::string answer; std::cout << "Yes or No: "; std::cin >> answer; if(answer == "Yes") // move robot return 0; }