Created
March 14, 2017 02:06
-
-
Save Jarvvski/b186fe138a32019a7d0c6f8a749f2c11 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Date newDate(int mon, int day, int yr) { | |
| Date _date; | |
| _date.month = mon; | |
| _date.day = day; | |
| _date.year = yr; | |
| return _date; | |
| } | |
| Date readIn() { | |
| int mon, day, yr; | |
| char *monStr = "\0"; | |
| scanf("%s ", monStr); | |
| scanf("%d ", &day); | |
| scanf("%d\n", &yr); | |
| mon = getMonth(monStr); | |
| return newDate(mon, day, yr); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment