3
已采纳
char a=getch();
if (a=='1') cout<<'a';
else if (a=='2') cout<<'b';
else cout<<'c';
头文件
#include<conio.h>
0
0
0
0
0
0
0
0
0
0
0
0