摘要: #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 阅读全文
posted @ 2025-07-26 15:46 黛玉醉打将门神 阅读(4) 评论(0) 推荐(0)
摘要: #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< 阅读全文
posted @ 2025-07-26 15:23 黛玉醉打将门神 阅读(4) 评论(0) 推荐(0)
摘要: 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<<"升序" 阅读全文
posted @ 2025-07-26 14:59 黛玉醉打将门神 阅读(5) 评论(0) 推荐(0)