关于C的代码无论怎么调试显示都有点问题
#include<stdio.h>int main(void)
{
char ch;
printf("Please enter a character.\n");
scanf_s("%c",&ch);
printf("The code for%c is%d.", ch, ch);
return 0;
}
这段代码无论输入什么字符,都显示The code for? is -52 怎么回事?调试没有问题
2015-07-09 13:57
2015-07-09 14:26
2015-07-09 15:00
2015-07-09 15:01
2015-07-09 15:35
2015-07-09 22:06