最新回答 / 猫的传人
C语言中'\n'是换行的意思,一般放到printf()这类函数中使用,比如:printf("this is a test\n Please check it\n");结果是:this is a testPlease check it ------源自百度知道所以这里连用了4个printf所以不用使用这个\n可以浓缩成一个printf再用\n来换行
2017-08-22
最新回答 / 张丽3973194
#include<stdio.h>int chuzuche(int t,int lc){float zj;//车费总计 double dj=2.3;//每公里计费 if(t<=23 && t>5) if(lc<=3) zj=13+1; else zj=13+(lc-3)*dj+1; else zj=13+(lc-3)*dj*1.2+1; return zj;}int main(){ int t1=9; int lc1=12; int t2=6; int...
2017-08-21
最赞回答 / 解语yo
++a先运算再取值:比如a=5,++a是先进行a增1的运算,这时取a的值为6,所以表达式a=6。a++先取值再运算:比如a=5,a++是表达式先取a的值为5,然后a增1,这时a的值为6体现在下一次a的运算中
2017-08-21
最新回答 / 划水人
arrThird数组,初始化不用定义类型,去掉就好。int arrThird[3]; arrThird[0] = 1;arrThird[1] = 2;arrThird[2] = 3; 前边的int都去掉 。因为你已经定义了int类型的数组,数组里面的类型就都是int类型,不用重新定义。
2017-08-21