📄 personalinfoimp.cpp
字号:
#include <iostream>
#include <string>
#include "personalInfo.h"
using namespace std;
void personalInfoType::setpersonalInfo(string first, string last,
int month, int day, int year, int ID)
{
name.setName(first,last);
bDay.setDate(month,day,year);
personID = ID;
}
void personalInfoType::printpersonalInfo() const
{
name.print();
cout<<"'s date of birth is ";
bDay.printDate();
cout<<endl;
cout<<"and personal ID is "<<personID;
}
personalInfoType::personalInfoType(string first, string last,
int month, int day,
int year, int ID)
: name(first,last), bDay(month,day,year)
{
personID = ID;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -