
CodePudding user response:
The book isn't there? The building Lord what book, the author?CodePudding user response:
Dynamic array structure can use list.Of course with the vector can also
Sort function is a sorting function, versatile
Of course can also give structure order
Sort the last parameter is sorting method
Is the compare
You define your own sort function
CodePudding user response:
To sort the third function of reference https://blog.csdn.net/qq_34489443/article/details/86219772? Utm_source=appCodePudding user response:
#includeusing namespace std;
Struct Student
{
Char name [256].
Int score;
};
Int main ()
{
int n=10;
Student stu [n].
for(int i=0; i
return 0;
}
CodePudding user response: