摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //成绩统计 int scores[3][3] = { {100,100,100}, {90,50,100}, {60,70,8 阅读全文
posted @ 2020-02-29 23:29 Jackie_Wang 阅读(1705) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //冒泡排序法 int arr[10] = { 3,5,6,4,2,9,8,1,7,0 }; cout << "排序前的数组为: 阅读全文
posted @ 2020-02-29 20:53 Jackie_Wang 阅读(3273) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //数组元素的逆置 int arr[5] = { 1,5,3,2,4 }; int start = 0; int end = s 阅读全文
posted @ 2020-02-29 20:25 Jackie_Wang 阅读(478) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //五只小猪称体重 int arr[5] = { 300,350,200,400,250 }; int min ; int n= 阅读全文
posted @ 2020-02-29 15:35 Jackie_Wang 阅读(497) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //goto语句 cout << "1.xxxxxx" << endl; cout << "2.xxxxxx" << endl; 阅读全文
posted @ 2020-02-29 14:17 Jackie_Wang 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //乘法口诀表 for (int j=1; j < 10; j++) { for (int i = 1; i <= j; i++ 阅读全文
posted @ 2020-02-29 14:00 Jackie_Wang 阅读(987) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //嵌套循环打印星图 for (int j = 0; j < 10; j++) { for (int i = 0; i < 10 阅读全文
posted @ 2020-02-29 13:44 Jackie_Wang 阅读(686) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //敲桌子 int i ; for (i = 1; i <= 100; i++) { if (i % 10 == 7 || i 阅读全文
posted @ 2020-02-29 13:26 Jackie_Wang 阅读(322) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; #include<string> #include<ctime> int main() { //找出100~999中的水仙花数 int num = 100; do { int a = 0; int b = 0; int 阅读全文
posted @ 2020-02-29 13:14 Jackie_Wang 阅读(3072) 评论(0) 推荐(0) 编辑