当前位置:首页 > 数学课件 > 正文内容

设计一个 Studnet(学生)类 1、基本信息:学号、姓名、性别、出生日期、年级、班级、院系、专业; 其中:基

zhao_admin1年前 (2022-05-31)数学课件40

代码实现:

#include

#include

using namespace std;

class Student{

public.e Student();/缺省构造函数

Student(int,string,char,int.int.int,int.int,string,string);//带参数构造函数。

Student(int,string,char,int,int,int),//默认为同一个年级。班级的人。

void Setlnfo(int g,int c,string dep,string spe){e grade=g;4

Class=c4;

department=dep;specialty=spee void Show(Student*p,int n)e friend;

istream&operator >>(istream&.Student&4friend ostream&operator

扫描二维码推送至手机访问。

版权声明:本文由PPT写作技巧发布,如需转载请注明出处。

本文链接:http://www.ppt3000.com/post/66252.html

分享给朋友:

相关文章