目录想到的方法:struct student{int idNumber;string name;int age;char department[20];double gpa;student(int id,string n,int a,const char d[],double g){idNumber=id;name=n;age=a;strncpy(department,d,20);gpa=a;}};void display(student arg);int main(){student s1(428004,"Tomato",20,"Co...
|