用C++程序编写,用类,对象编写程序输入和存储100个学生的个人信息:姓名、性别、出生年月日、联系电话。

来源:百度知道 编辑:UC知道 时间:2024/08/22 21:31:50
能帮我写出程序吗?

#include<string>
using namespace std;

typedef struct
{
int year;
int month;
int day;
}Birthday;

typedef enum
{
MALE = 0,
FEMALE = 1
}SEX;

class student
{
public:
student();
~student();
private:
string name;
SEX sex;
Birthday birth;
string tel;
};

5后面加个0
我立马给你写