- 博客(6)
- 收藏
- 关注
原创 python 写入打开模式
python 文件写入打开模式图 with open('/wzd/test.txt', mode='r') as f: f.write('abc') r = f.readlines()
2020-09-09 21:08:37 127
原创 排序算法和搜索学习
#include<iostream> #include<algorithm> #include <random> using namespace std; template<typename T> class Sort { public: void BubbleSort(T list[], int n); void SelectS...
2019-08-20 17:07:23 89
原创 C++数据结构--交换
#include<iostream> using namespace std; class Swap { public: Swap(int a, int b); ~Swap(); void swap(int* x, int* y); void swap(int& x, int& y); void print(int a, int...
2019-08-06 12:31:55 185
原创 直接插入排序
#include <iostream> #include <vector> #include <strstream> #include <time.h> int main() { srand((unsigned)time(NULL));//为rand()函数生成不同的随机种子 std::vector<double> n...
2019-03-27 17:42:34 64
原创 冒泡排序
#include <iostream> #include <vector> #include <strstream> int main() { int flag=0; int flag_last=0; std::vector<double> numarray={1, 4, 8, 1, 2, 3, 1}; for(i...
2019-03-27 16:10:28 74
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人