Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Calendar성훈이코드: Difference between revisions

From ZeroWiki
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

  1. include <stdio.h>
  2. 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; }