摘要: 1 #include <stdio.h> 2 int main(){ 3 int a,b,sum; 4 scanf("0x%x 0%o",&a,&b); 5 sum=a+b; 6 printf("%d",sum); 7 } 十六进制Hexadecimal一般以0x开头,例如0xFF。八进制Octal 阅读全文
posted @ 2021-12-01 20:24 郑雅文呀 阅读(163) 评论(0) 推荐(0)
摘要: 1.break;和continue;的区别 1 #include <stdio.h> 2 3 int main(){ 4 5 int ch = 0; 6 7 while ((ch = getchar()) != EOF) 8 9 { 10 11 if (ch<'0' || ch>'9') 12 13 阅读全文
posted @ 2021-12-01 20:14 郑雅文呀 阅读(80) 评论(0) 推荐(0)