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