0
GGGiovanny Gongora
Display the current year
0 Comments
#include <iostream> #include <ctime> time_t t = time(NULL); tm* timePtr = localtime(&t); cout << "year = " << (timePtr->tm_year)+1900 << endl;