From ca2154cb6f682cc02bdbe3e4bf987d965501ee01 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Tue, 8 Oct 2024 13:14:08 +0200 Subject: [PATCH] fixed the input text --- src/C++/Driver/src/test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/C++/Driver/src/test.cpp b/src/C++/Driver/src/test.cpp index bcd7442..b7adcfb 100644 --- a/src/C++/Driver/src/test.cpp +++ b/src/C++/Driver/src/test.cpp @@ -8,8 +8,8 @@ using namespace std; CKobuki robot; int command(); -const char FORWARD = '1'; -const char ROTATE = '2'; +const string FORWARD = "forward"; +const string ROTATE = "rotate"; int main() { unsigned char *null_ptr(0); @@ -38,7 +38,7 @@ int command() { char input; while (true) { - std::cout << "choose between forward = 1 and rotate = 2" << endl; + std::cout << "choose between forward or rotate" << endl; std::cout << "What must the robot do?"; std::cin >> input;