哪位高手能给一个用C语言写的万年历
来源:百度知道 编辑:UC知道 时间:2024/06/30 17:48:06
#include "BIOS.h"在visual studio2005编译环境下无法找到.
请给一个在VC6.0环境下能运行的.谢谢!!
// Yuna_2006_10_16
// A program of a celinder
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
// the use of setw
#include <iomanip>
using std::setw;
#define BEGINYEAR 2000 // the year i use to begin
#define BEGINDAY 6 // 2000`s first day
const int aiMounth[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // everymounth`s days
// the fuction i call
int GetBeginDay( int, int ); // Get the first day of the mounth
int GetDays( int, int ); // Get the number of the days in a mounth
void PrintTitle(); // print the title
void PrintDate( int, int ); // print the date
int GetDaysOfaYear( int ); // get the number of days of a year
// the main begin here
int main()
{
int iYear, iMounth, iBeginDayOfaWeek, iDays;
// prompt and get the paramters i need
cout << "P