摘要: #include <stdio.h> int main(){ char c='1'; //强制类型转换取到的是其字符对应的ASCII值 int a=(int)c; printf("%d",a); //取到字符本身的整型值 int b=c-48; printf("%d",b); return 0;} 阅读全文
posted @ 2023-04-25 18:30 灬倾夏 阅读(17) 评论(0) 推荐(0)