擴展練習4(學生類設計).設計一個友元函數,按照成績從高到低的順序輸出姓名、學號和成績信息

#include<iostream> using namespace std; class CStudent{ private: int id_,math_,forlan_,computer_; char *name_; public: CStudent(int id=0,char *name=" ",int math=0,int forlan=0,int computer=0):id_(i
相關文章
相關標籤/搜索