0
GGGiovanny Gongora
Display the current amount of hours
0 Comments
#include <iostream> #include <ctime> time_t t = time(NULL); tm* timePtr = localtime(&t); cout << "hours = " << (timePtr->tm_hour) << endl;