⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 personalinfo.h

📁 C++编成数据结构与程序设计方法 D.S.Malk编著
💻 H
字号:


#ifndef personalInfo_H
#define personalInfo_H

#include <string>
#include "personType.h"
#include "dateType.h"

using namespace std;

class personalInfo
{
public:
    void setpersonalInfo(string first, string last, int month, 
                         int day, int year, int ID);
      //Function to set the personal information.
      //The member variables are set according to the 
      //parameters.
      //Postcondition: firstName = first; lastName = last;
      //               dMonth = month; dDay = day; 
      //               dYear = year; personID = ID;
 
    void printpersonalInfo () const;
      //Function to print the personal information.
      
    personalInfo(string first = "", string last = "", 
                 int month = 1, int day = 1, int year = 1900, 
                 int ID = 0);
      //Constructor 
      //The member variables are set according to the 
      //parameters.
      //Postcondition: firstName = first; lastName = last;
      //               dMonth = month; dDay = day; 
      //               dYear = year; personID = ID;
      //               If no values are specified, the default 
      //               values are used to initialize the member 
      //               variables.

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

#endif

⌨️ 快捷键说明

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