class CDateTime : public CDate { public: void display_date_time() { // Get date and time time_t seconds = time(NULL); tm* timeinfo = localtime(&seconds);
// Set time set_time(timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec);
// Set date set_date(timeinfo->tm_year + 1900, timeinfo->tm_mon + 1, timeinfo->tm_mday);
// Print data display_date();
// Print time display_time(); } };
int main () { CDateTime dt; dt.display_date_time();
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments