2017年10月12日

摘要: 输出一个由 * 符号所组成的三角形,要求第一行十个 * ,第二行 九个 * 第三行 八个 * 依次类推,最后一行一个 *。使用双重for循环完成。 阅读全文
posted @ 2017-10-12 10:36 三叶癌 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 输出一个由 * 符号所组成的三角形,要求第一行一个 * ,第二行 两个 * 第三行 三个 * 依次类推,最后一行10个 *。使用双重for循环完成。 阅读全文
posted @ 2017-10-12 10:29 三叶癌 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 输出一个由 * 符号所组成的矩形,要求每行有50个 * ,一共需要有60行。使用双重for循环完成 阅读全文
posted @ 2017-10-12 10:10 三叶癌 阅读(61) 评论(0) 推荐(0) 编辑

2017年9月24日

摘要: #include<iostream> using namespace std; int main(){ cout<<(6&3)<<endl; return 0; } 阅读全文
posted @ 2017-09-24 15:19 三叶癌 阅读(63) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main(){ short int a=2; a-=1; cout<<a<<endl; return 0; } 阅读全文
posted @ 2017-09-24 15:16 三叶癌 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int a=5,b; b=a++; cout using namespace std; int main(){ int a=5,b; b=++a; cout<<b<<endl; return 0; } 阅读全文
posted @ 2017-09-24 15:14 三叶癌 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int a=11,b=1,c; while(a>0,b using namespace std; int main(){ for (int a=1;a<=11;a++){ if(a%2==1) cout<<a<<endl; } return... 阅读全文
posted @ 2017-09-24 15:08 三叶癌 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int x=8999; int value=x*1000/1000; cout using namespace std; int main(){ int x=8999; int value=x/1000*1000; cout using namespace std; int main... 阅读全文
posted @ 2017-09-24 14:12 三叶癌 阅读(79) 评论(0) 推荐(0) 编辑

2017年9月21日

摘要: #include<iostream>using namespace std;int main(){ int short a; a=684318; cout<<"a="<<a<<endl; return 0;} 阅读全文
posted @ 2017-09-21 11:28 三叶癌 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main(){ char a1,a2; a1='A'; a2='B'; cout<<"a1+a2="<<a1+a2<<endl; return 0;} 阅读全文
posted @ 2017-09-21 11:23 三叶癌 阅读(67) 评论(0) 推荐(0) 编辑

导航