E D R , A S I H C RSS

Calendar성훈이코드 (rev. 1.7)

Calendar성훈이코드

Calendar.h

#include <stdio.h>

void printCalender(int year, int first);
void printFirstTab(int month, int year);
int printDays(int month, int year, int leftDays);
void print_space();
void print_days(int day);
int daysOfMonth(int month, int year);
int IsLeafYear(int year);

Calendar.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;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:48
Processing time 0.0134 sec