摘要: &&和 &区别 same:都是用作逻辑运算符 "与(and)".同为trues时,整个运算符结果才为true.否则一方为false,则结果为false. different:"&&"具有短路功能, 表示第一个表达式为false,则就不会计算第二个表达式;而"&"第一个表达式为false,继续计算第二 阅读全文
posted @ 2020-04-30 15:43 sirdeng 阅读(578) 评论(0) 推荐(0)
摘要: 源码: #include<stdio.h>#include<math.h>int main(void){ int a,b,c,d; printf("please enter three integer;\n"); scanf("%d %d %d",&a, &b ,&c);。 d=sqrt(a*1)+ 阅读全文
posted @ 2020-04-30 15:42 sirdeng 阅读(735) 评论(0) 推荐(0)