time_t t = time(NULL);
struct tm tm = *localtime(&t);
std::cout << std::boolalpha << (tm.tm_year + 1900 == 2024);
true
:D
struct tm tm = *localtime(&t);
std::cout << std::boolalpha << (tm.tm_year + 1900 == 2024);
true
:D
Random Chitchat 2020-2024
|
« Next Oldest | Next Newest »
|