mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
fixed the input text
This commit is contained in:
@@ -8,8 +8,8 @@ using namespace std;
|
|||||||
CKobuki robot;
|
CKobuki robot;
|
||||||
int command();
|
int command();
|
||||||
|
|
||||||
const char FORWARD = '1';
|
const string FORWARD = "forward";
|
||||||
const char ROTATE = '2';
|
const string ROTATE = "rotate";
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
unsigned char *null_ptr(0);
|
unsigned char *null_ptr(0);
|
||||||
@@ -38,7 +38,7 @@ int command() {
|
|||||||
char input;
|
char input;
|
||||||
|
|
||||||
while (true) {
|
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::cout << "What must the robot do?";
|
||||||
std::cin >> input;
|
std::cin >> input;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user