fixed the input text

This commit is contained in:
ishak jmilou.ishak
2024-10-08 13:14:08 +02:00
parent 4a5862dd6a
commit ca2154cb6f

View File

@@ -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;