设计一个 Studnet(学生)类 1、基本信息:学号、姓名、性别、出生日期、年级、班级、院系、专业; 其中:基
代码实现:
#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