?? people.h
字號:
// People.h: interface for the People class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PEOPLE_H__7A5CCC65_488A_4C96_8C59_A6F12051BE45__INCLUDED_)
#define AFX_PEOPLE_H__7A5CCC65_488A_4C96_8C59_A6F12051BE45__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <memory.h>
#include <string>
using std::string;
#include "birthday.h"
//#define SIZE 10 //輸入name的長度
class People
{
public:
string name;
int id;//身份證號
int number;//編號
int sex;//性別 0 男 1 女
Birthday birthday;
public:
bool People::operator ==( People people);//"=="重載
People& People::operator =( People& people);//"="重載
People();
People(const People& p); //拷貝構造函數
virtual ~People();
void setPeople(string name,int id,int number,int sex,Birthday birthday); // 設置人員信息(1)
void setPeople(string name,int id,int number,int sex,int year,int month,int day); // 設置人員信息(2)
void displayPeople(string name,int id,int number,int sex,int year,int month,int day) const; // 顯示人員信息
};
#endif // !defined(AFX_PEOPLE_H__7A5CCC65_488A_4C96_8C59_A6F12051BE45__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -