原创 冒泡排序及其優化(C++實現)

#include<iostream> #include<vector> using namespace std; //冒泡排序的特點:每一輪冒泡過後,在過去一輪遍歷中訪問過的元素中的最大元素 //一定會到達它最終應當處在的位置。