More actions
imported>smksyj No edit summary |
imported>gnstjdok No edit summary |
||
| Line 1: | Line 1: | ||
== Calendar.h == | == Calendar.h == | ||
== main.cpp == | == main.cpp == | ||
#include <stdio.h> | |||
#include "Calender.h" | |||
int main() | |||
{ | |||
int year, first; | |||
printf("Input the year : "); | |||
scanf("%d", &year); | |||
printf("Input the first day of week in January (0:Mon -- 6:Sun)"); | |||
scanf("%d", &first); | |||
printCalender(year, first); | |||
fflush(stdin); | |||
getchar(); | |||
return 0; | |||
} | |||
Revision as of 09:19, 22 May 2012
Calendar.h
main.cpp
- include <stdio.h>
- include "Calender.h"
int main() { int year, first;
printf("Input the year : "); scanf("%d", &year); printf("Input the first day of week in January (0:Mon -- 6:Sun)"); scanf("%d", &first);
printCalender(year, first);
fflush(stdin); getchar(); return 0; }