2020年9月14日
摘要: 1 // g++ selection_sort.cc -Wall -O3 -std=c++11 && ./a.exe 2 3 4 #include <iostream> 5 #include <vector> 6 7 8 static void swap(int &a, int &b) { 9 in 阅读全文
posted @ 2020-09-14 17:51 _bob 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 // g++ bubble_sort.cc -Wall -O3 && ./a.exe 2 3 4 #include <iostream> 5 #include <vector> 6 7 8 static void swap(int &a, int &b) { 9 b = a + b; 10 a 阅读全文
posted @ 2020-09-14 16:39 _bob 阅读(187) 评论(0) 推荐(0) 编辑