{
Код: Выделить всё
time_t epSeconds;
tm *pCalendarTime = nullptr;
string monthnames[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
epSeconds = time (NULL);
pCalendarTime = localtime(&epSeconds);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78690088/display-number-of-days-in-the-current-month[/url]