试了快排,选择,插入,只有插入排序是稳定的 #include <cctype> #include <climits> #include <iostream> #include <vector> #include <queue> using namespace std; struct mychar{ char c; bool is_alpha; }; int part(string& in,int low,int high){ int l=low,h=high,pivot=tolower(in[l]); while(l<h...