?? personalinfoimp.cpp
字號:
#include <iostream>
#include <string>
#include "personalInfo.h"
using namespace std;
void personalInfo::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 personalInfo::printpersonalInfo() const
{
name.print();
cout << "'s date of birth is ";
bDay.printDate();
cout << endl;
cout << "and personal ID is " << personID;
}
personalInfo::personalInfo(string first, string last, int month,
int day, int year, int ID)
: name(first, last), bDay(month, day, year)
{
personID = ID;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -