摘要:
源程序: #include <iostream>#define N 10using namespace std; template <typename T> T sum_array(T a[], int n){ int i,size; T sum=0; cout << "您想求数组前几项的和,请输入 阅读全文
posted @ 2020-02-06 09:53
bobo哥
阅读(146)
评论(0)
推荐(0)
摘要:
源程序: 用三种排序:冒泡排序,直接插入排序,直接选择排序 #include <iostream>#define N 5using namespace std; template <typename T>//冒泡排序 /*void bubble_sort(T a[], int n){ int i, 阅读全文
posted @ 2020-02-06 09:02
bobo哥
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号