题目要求
解题思路
这道题看着简单,但是我还是不能独立完成,这个和我的心态有很大的关系,太过于焦躁不安,不能完全的沉下心来去解决问题。
同时对于vector容器的操作方法太过于生疏,需要多多练习。
总的来说,实力才是王道,还是你实力太弱,所以总是不安
代码:
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;
struct Student{
int num;
string name;
string sex;
int age;
};
bool Comp(const Student s1,const Student s2){
if(s1.num!=s2.num)
ret