2017年9月11日

摘要: #include<iostream>using namespace std;int main(){int i,j,m,n;i=8;j=10;m=++i+j++;n=( ++i)+( ++j)+m;cout<<i<<'\t'<<j<<'\t'<<m<<'\t'<<n<<endl;return 0;} 阅读全文
posted @ 2017-09-11 21:05 三叶癌 阅读(74) 评论(1) 推荐(0) 编辑
摘要: 1. 6 2. 15 3. 4 4. 11 5. 0 6.0 阅读全文
posted @ 2017-09-11 20:52 三叶癌 阅读(110) 评论(1) 推荐(0) 编辑
摘要: 2章5题 1. 3.5*3+2*7-‘a’=-72.5 2. 26/3+34%3+2.5=11.5 3. 45/2+(int)3.14159/2=23 4. a=b=(c=a+=6)=9 5. a=3*5,a=b=3*2= 6. (int)(a+6.5)%2+(a=b=5)=6.5 7. x+a%3 阅读全文
posted @ 2017-09-11 20:49 三叶癌 阅读(243) 评论(1) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ void sort(int x,int y,int z); int x,y,z; cin>>x>y>>z; sort(x,y,z); return 0;}void sort(int x,int y,i 阅读全文
posted @ 2017-09-11 20:26 三叶癌 阅读(77) 评论(1) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){int a,b,c;int f(int x,int y,int z);cin>>a>>b>>c;c=f(a,b,c);cout<<c<<endl;return 0;}int f(int x,int y, 阅读全文
posted @ 2017-09-11 20:26 三叶癌 阅读(72) 评论(1) 推荐(0) 编辑

导航