主题:[讨论]C primerplus 3.5程序问题
#include <stdio.h>
int main(void)
{
char ch;
printf("Please enter a character.\n");
scanf("%c,&ch");
printf("The code for%c is %d.\n",ch,ch);
return 0;
}
书上写的运行示例
Please enter a character.
C
The code for C is 67.
我用Devc++写后最后一行是The code for is .
int main(void)
{
char ch;
printf("Please enter a character.\n");
scanf("%c,&ch");
printf("The code for%c is %d.\n",ch,ch);
return 0;
}
书上写的运行示例
Please enter a character.
C
The code for C is 67.
我用Devc++写后最后一行是The code for is .