Например:
Код: Выделить всё
#ifndef _TIMER_H_
#define _TIMER_H_
#include
#include
struct dtime {
int t_year;
int t_month;
int t_date;
int t_hour;
int t_min;
public:
dtime(int s_year, int s_month, int s_date, int s_hour, int s_min)
: t_year{s_year}, t_month{s_month}, t_date{s_date},
t_hour{s_hour}, t_min{s_min} {}
bool timechecker() {
struct tm* currenttime;
time_t now;
time(&now);
currenttime = localtime(&now);
if (currenttime->tm_hour == t_hour) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79832677/why-should-not-standard-headers-be-included-inside-custom-header-files[/url]