C++对象作为另一个类的成员
作用:#include <iostream>using namespace std;class Date {public: Date(int l, int w, int n); int date; int mouth; int year;};Date::Date(int l, int w, int n) :date(l), mouth(w), year(n) { cout << "Date" << endl;}class Perso.
原创
2023-10-13 15:54:32 ·
33 阅读 ·
0 评论