#include <stdio.h>
int main()
{
char key;
printf("Press a key on your keyboard:");
key=getchar();
printf("You pressed the '%c' key./n",key);
printf("Its ASCII value is %d./n",key);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266613.html