摘要: 1 #include<iostream> 2 #include<iomanip> 3 #include<ctime> 4 using namespace std; 5 const int arrSize = 8; 6 7 void getArray(int a[], int n) // 产生一个随机 阅读全文
posted @ 2020-04-27 16:06 萧竹影丶 阅读(184) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<iomanip> 3 #include<ctime> 4 using namespace std; 5 const int arrSize = 8; 6 7 void getArray(int a[], int n) // 产生数组 8 阅读全文
posted @ 2020-04-27 15:00 萧竹影丶 阅读(150) 评论(0) 推荐(0)
摘要: #include<iostream>#include<iomanip>using namespace std; double fac(int n) { double y; if (n == 0 || n == 1) y = 1; else y = n * fac(n - 1); return y;} 阅读全文
posted @ 2020-04-22 22:48 萧竹影丶 阅读(269) 评论(0) 推荐(0)