用C语言制作万年历
来源:百度知道 编辑:UC知道 时间:2024/05/18 05:06:58
要求能调用系统当前时间,并能翻页(每页一月),打开时显示当前日期,界面类似与常用的挂历.谢谢^^
谢谢
但这不是我要的,请仔细看要求
这是我们的课程设计
c++可以
如果符合要求的话,我可以再加50分
谢谢
但这不是我要的,请仔细看要求
这是我们的课程设计
c++可以
如果符合要求的话,我可以再加50分
/*以下程序在TC2 中通过*/
#include <stdio.h>
#include <conio.h>
#include <dos.h>
void rili(int,int);
int runniansub(int);
int week(int,int,int);
int monthday[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int main()
{
struct date d;
getdate(&d);
printf("今天是:%d年 %d月 %d日\n",d.da_year,d.da_mon,d.da_day);
rili(d.da_year,d.da_mon-1);
system("pause");
return 0;
}
void rili(int year,int month)
{
int d,w,i,s,c,p;
char x;
while(month>11) {
month-=12;
year++;