Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct tm {
- int tm_sec;
- int tm_min;
- int tm_hour;
- int tm_mday; ///< то что требуется
- int tm_mon;
- int tm_year;
- int tm_wday;
- int tm_yday;
- int tm_isdst;
- };
- #include <windows.h>
- #include <iostream>
- void main()
- {
- SYSTEMTIME st;
- GetSystemTime(&st);
- std::cout << st.wDay; // Вывод дня месяца
- }
- #include <atltime.h>
- int Month=CTime::GetMonth();
- SYSTEMTIME st;
- GetSystemTime(&st);
- cout << to_string(st.wMinute) + "-"
- + to_string(st.wHour) + "."
- + to_string(st.wDay) + "."
- + to_string(st.wMonth) + "."
- + to_string(st.wYear) << endl;
Add Comment
Please, Sign In to add comment