From 3f5c35245137fa823204d770ba44e94bfbbf0861 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Tue, 8 Oct 2024 12:41:12 +0200 Subject: [PATCH] fixed some small problems --- src/C++/Driver/src/test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/C++/Driver/src/test.cpp b/src/C++/Driver/src/test.cpp index 5c2c63e..cf0329b 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 int forward = 1; -const int ROTATE = 2; +const char forward = '1'; +const char rotate = '2'; int main() { unsigned char *null_ptr(0); @@ -43,14 +43,14 @@ int command() { switch (input) { case forward: { int distance; - std::cout >> "Enter distance to move forward: "; + std::cout << "Enter distance to move forward: "; cin >> distance; robot.goStraight(distance); } break; case ROTATE: { int angle; - std::cout >> "Enter angle to rotate: "; + std::cout << "Enter angle to rotate: "; std::cin >> angle; robot.doRotation(angle); robot.goStraight(-1);