#2 Doomista
#include <iostream>
#include <windows.h>
#include <string>
#include <conio.h>
using namespace std;
int move()
{
cout << " move " << endl;
return 0;
}
int stop()
{
cout << " stop " << endl;
return 0;
}
int main()
{
while(1)
{
Sleep(200);
if (kbhit())
{
move();
getch();
}
else{
stop();
getch();
}
}
return 0;
}