我有一个包含Registration
成员的QDate
课程。如何将其初始化为当前日期?
#include <QDate>
class Registration {
private:
Person m_Attendee;
QDate m_BookingDate; // how do I initialze this?
public:
Registration(Person a);
};
Registration::Registration(Person a): m_Attendee(a) {}