Last active
May 25, 2020 17:45
-
-
Save FrostDelta123/c8c541bb4d8745aa75fcfba94628d582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef KURSACHNEW_DATE_H | |
#define KURSACHNEW_DATE_H | |
#include <string> | |
using namespace std; | |
class Date { | |
public: | |
Date(); //Конструктор класса | |
int day = 0, mon = 0, year = 0; //Стандартные значения | |
static int isValid(int, int, int); // Проверка даты на валидность. День, месяц, год | |
static bool isValid(string);// Проверка даты на валидность. Строка DD.MM.YYYY | |
static bool isValid(Date);// Проверка даты на валидность. Дата. | |
Date(int, int, int); //Конструктор класса, принимающий на вход день, месяц и год | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment