problemscpp
A collection of my answers to algorithm problems in c++.
Public 成员函数 | Public 属性 | 所有成员列表
pat::b::b1028::Person结构体 参考

#include <pat.h>

Public 成员函数

 Person ()=default
 
 Person (int year, int month, int day)
 
bool operator< (const Person &p) const
 

Public 属性

int day {}
 
int month {}
 
string name
 
int year {}
 

详细描述

在文件 pat.h170 行定义.

构造及析构函数说明

◆ Person() [1/2]

pat::b::b1028::Person::Person ( )
default

◆ Person() [2/2]

pat::b::b1028::Person::Person ( int  year,
int  month,
int  day 
)
inline

在文件 pat.h177 行定义.

成员函数说明

◆ operator<()

bool pat::b::b1028::Person::operator< ( const Person p) const

在文件 pat.cpp968 行定义.

968 {
969 if(this->year < p.year) {
970 return true;
971 }
972 if(this->year == p.year && this->month < p.month) {
973 return true;
974 }
975 if(this->year == p.year && this->month == p.month && this->day < p.day) {
976 return true;
977 }
978 return false;
979 }

引用了 day, month , 以及 year.

类成员变量说明

◆ day

int pat::b::b1028::Person::day {}

在文件 pat.h174 行定义.

被这些函数引用 pat::b::b1028::main() , 以及 operator<().

◆ month

int pat::b::b1028::Person::month {}

在文件 pat.h173 行定义.

被这些函数引用 pat::b::b1028::main() , 以及 operator<().

◆ name

string pat::b::b1028::Person::name

在文件 pat.h171 行定义.

被这些函数引用 pat::b::b1028::main().

◆ year

int pat::b::b1028::Person::year {}

在文件 pat.h172 行定义.

被这些函数引用 pat::b::b1028::main() , 以及 operator<().


该结构体的文档由以下文件生成: