冒泡排序C++实现 #include <iostream> using namespace std; //交换两个元素的值的方法 void swap(int *a, int *b) { int *temp = a; a