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

Calendar성훈이코드

From ZeroWiki
Revision as of 09:22, 22 May 2012 by imported>gnstjdok

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;
}