看了会C primer plus,看到了字符串,以此来发个blog来复习一下
#include <stdio.h>
int main()
{
char i='A';//ASCII中A对应数字65,因次用10进制输出A时时65
printf("%d",i);
return 0;
}
65
--------------------------------
Process exited after 0.00588 seconds with return value 0
请按任意键继续. . .
同样的,我们可以逆过程一下,知道数字,我们来看看对应ASCII中哪个字母
#include <stdio.h>
int main()
{
int i=65;
printf("%c",i);
return 0;
}
65
--------------------------------
Process exited after 0.00588 seconds with return value 0
请按任意键继续. . .