摘要: 学生成绩(sort结构体) #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:49 爱吃泡面的皮卡 阅读(8) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; bool www(string &a,string &b){ return a.size()<b.size(); } int main(){ vector <string> s={"asdasda","gga 阅读全文
posted @ 2025-07-26 15:18 爱吃泡面的皮卡 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ vector <int> s={4,24,5,6,7,3,4}; sort(s.begin(),s.end()); cout<<"升序"; for(int i:s){ cout<<i< 阅读全文
posted @ 2025-07-26 14:58 爱吃泡面的皮卡 阅读(7) 评论(0) 推荐(0)