3.排序題與sort函數的應用

3.排序題與sort函數的應用 1.相關結構體的定義web struct stu{ char name[10]; //名字 char id[10]; //學號 int score; //分數 int r; //排名 }; 2. sort中cmp函數編寫 例如:要求按照分數高低排序,若是相同按照名字從小到大排序。svg bool cmp(stu a,stu b) //a,
相關文章
相關標籤/搜索