char变量如何为整数和字符?

#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);
}

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...