定义一个日期类Date,该类对象存放一个日期 #includeusing namespace std;class Date{public:void printDate(){cout}void Getyear(){cout}void Getmonth(){cout}void Getday(){cout}void setDate(int y,int m,int d Other 2023-09-24 124 点赞 1 评论 187 浏览
C++Primer(5th) Notes - 2.1 基本内置类型 2.1 基本内置类型基本内置类型包括 算术类型 和 空类型 。2.1.1 算术类型(arithmetic type)算术类型的分类内置类型{算术类型{整型{布尔值: bool字符型: char, wchar_t, char16_t, char32_t整型数: short, int, long, lon... C++ Primer(5th) Notes 2023-09-02 136 点赞 2 评论 206 浏览