2017年9月21日

摘要: 1 2 #include 3 using namespace std; 4 int main() { 5 char c1,c2; 6 c1='a'; 7 c2='b'; 8 c1=c1-32; 9 c2=c2-32; 10 cout<<c1<<'\n'<<c2<<endl; 11 return 0; 12 } 阅读全文

posted @ 2017-09-21 09:18 dragonliu欧美 阅读(61) 评论(0) 推荐(0) 编辑

摘要: 1 #include 2 using namespace std; 3 int main() { 4 int i,j; 5 i='A'; 6 j='B'; 7 cout<<i<<'\n'<<j; 8 return 0; 9 } 阅读全文

posted @ 2017-09-21 09:17 dragonliu欧美 阅读(78) 评论(0) 推荐(0) 编辑

2017年9月10日

摘要: 1 #include 2 using namespace std; 3 int main() 4 { int i,j,m,n; 5 i=8; 6 j=10; 7 m=++i+j++; 8 n=(++i)+(++j)+m; 9 cout<<i<<'\'<<j<<'\t'<<n<<endl; 10 return 0; 11 } ... 阅读全文

posted @ 2017-09-10 16:29 dragonliu欧美 阅读(127) 评论(1) 推荐(0) 编辑

摘要: (1)0 (2)10 (3)60 (4)0 (5)0 (6)0 阅读全文

posted @ 2017-09-10 16:28 dragonliu欧美 阅读(100) 评论(1) 推荐(0) 编辑

摘要: (1)-72.5 (2)10.8 (3)23 (4)9 (5)6 (6)6 (7)2.5 (8)3.5 阅读全文

posted @ 2017-09-10 16:22 dragonliu欧美 阅读(115) 评论(1) 推荐(0) 编辑

摘要: 1 #include 2 using namespace std; 3 int main() 4 { void sort(int x,int y,int z); 5 int x,y,z; 6 cin>>x>>y>>z; 7 sort(x,y,z); 8 return 0; 9 } 10 void sort(int x,int y,int z) 11 { 12 ... 阅读全文

posted @ 2017-09-10 14:38 dragonliu欧美 阅读(165) 评论(1) 推荐(0) 编辑

摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 int a,b,c; 6 int f(int x,int y,int z); 7 cin>>a>>b>>c; 8 c=f(a,b,c); 9 cout<<c<<endl; 10 return 0; 11 } 12 int f(int x,int y,... 阅读全文

posted @ 2017-09-10 14:37 dragonliu欧美 阅读(118) 评论(1) 推荐(0) 编辑