摘要: stu s1={1,”留有一“,111};cout<<s1.id<<endl;cout<<s1.name<<endl; for(int i=0;i<n;i++){ for(int j=n-1;j>0;j--){ if(a[i].cj<a[j].cj){ swap(a[i].age,a[j].age) 阅读全文
posted @ 2025-02-06 09:39 最后一个还有我 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; struct lile{ int age; string name; int cj; }; int main() { int n; cin>>n; lile a[n];lile a1; for(int i=0 阅读全文
posted @ 2025-02-06 09:35 最后一个还有我 阅读(15) 评论(0) 推荐(0)