#include
using namespace std;
int main()
{
char ckey;
int x;
for(x=1;x<10;x++){
cout << “请选择方向” << endl;
cin >> ckey;
if(ckey==‘a’)
cout << “向上” << endl;
else if(ckey==‘b’)
cout << “向下” << endl;
else if(ckey==‘c’)
cout << “向左” << endl;
else if(ckey==‘d’)
cout << “向右” << endl;
else
cout << “无法识别方向” << endl;
}
return 0;
}