Created
October 16, 2019 16:03
-
-
Save quindariuss/c6a80a49a7a78ab4be13bc2c2e8fdea8 to your computer and use it in GitHub Desktop.
Checks if var month is a real month.
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
#include iostream | |
using namespace std; | |
int main{ | |
int dateCheck(int year, int month, int day){ | |
assert(0 < month ≤ 12) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment