personalinfo.h

来自「data+structures+using+c的源码」· C头文件 代码 · 共 45 行

H
45
字号


#ifndef personalInfo_H
#define personalInfo_H

#include <string>
#include "person.h"
#include "date.h"

using namespace std;

class personalInfoType
{
public:
    void setpersonalInfo(string first, string last, 
                         int month, int day, 
                         int year, int ID);
		//Function to set the personal information
		//Data members are set according to the 
		//parameters.
		//Postconditions: firstName = first; 
		// 	lastName = last; dMonth = month; 
		//    dDay = day; dYear = year; personID = ID;

    void printpersonalInfo () const;
		//Function to print the personal information
	  
	personalInfoType(string first = "", string last= "", 
                  int month = 1, int day = 1, 
                  int year = 1900, int ID = 0);
		//Constructor 
		//Data members are set according to the 
		//parameters
		//Postconditions: firstName = first; 
		//	lastName = last; dMonth = month; 
		//    dDay = day; dYear = year; personID = ID

private:
    personType name;
    dateType bDay;
    int personID;
};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?