#include <stdio.h>
int main(){
char c;
printf("请输入您的字符:>");
scanf("%c",&c);
printf("%c的ASCII码是:%d\n",c,c);
return 0;
}
#include <stdio.h>
int main(){
char c;
printf("请输入您的字符:>");
scanf("%c",&c);
printf("%c的ASCII码是:%d\n",c,c);
return 0;
}
本文标题:C 语言实例8 - 字符转 ASCII 码
本文链接:https://www.haomeiwen.com/subject/rsytfdtx.html
网友评论