![]() |
#2
rjsp2022-08-18 22:55
|

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
char key = 0;
while(1)
{
key = _getch();
if(key != 0)
{
if(key > 0)
printf("key = %d\n",key);
else
printf("key = %d ",key);
key = 0;
}
}
return 0;
}
#include<conio.h>
using namespace std;
int main()
{
char key = 0;
while(1)
{
key = _getch();
if(key != 0)
{
if(key > 0)
printf("key = %d\n",key);
else
printf("key = %d ",key);
key = 0;
}
}
return 0;
}
只有本站会员才能查看附件,请 登录