摘要:
#include <bits/stdc++.h> using namespace std; struct Tom{ string name; int age; int score; }; bool score_1(const Tom &a,const Tom &b){ if(a.score==b.s
閱讀全文
摘要:
#include <bits/stdc++.h> using namespace std; bool len(string &a,string &b){ return a.length()<b.length(); } int main(int argc, char** argv) { vector<
閱讀全文
摘要:
1 #include <bits/stdc++.h> 2 using namespace std; 3 void basicSort(){ 4 vector<int> nums{3,5,2,1,6,9,7}; 5 sort(nums.begin(),nums.end()); 6 cout<<"升序"
閱讀全文