求用C++日历源代码
那更简单,改好了
#include <stdio.h>
#include<conio.h>
#include<stdlib.h>
int IsLeapYear(int);
void main()
{
int i;
int day;
int year;
int month;
int temp;
int temp_i;
long int Year_days = 0;
int Year_Start = 1;
int Per_Year_Days;
int month_day[]={ ,,,,,,,,,,,,};
printf("Please enter the year: ");
scanf("%d",&year);
//printf("Please enter the month, enter 0 for the whole year: ");
//scanf("%d",&month);
month=0;
while(Year_Start < year)
{
if( IsLeapYear( Year_Start ) )
Per_Year_Days = ;
else
Per_Year_Days = ;
Year_days = Year_days + Per_Year_Days;
Year_Start++;
}
for( temp = 1; temp <= && (month*(temp-1)==0); temp++ )
{
if (month!=0) temp=month;
switch(temp)
{
case 1:
printf(" January(%d)\n",year);
break;
case 2:
printf(" February(%d)\n",year);
break;
case 3:
printf(" March(%d)\n",year);
break;
case 4:
printf(" April(%d)\n",year);
break;
case 5:
printf(" May(%d)\n",year);
break;
case 6:
printf(" June(%d)\n",year);
break;
case 7:
printf(" July(%d)\n",year);
break;
case 8:
printf(" August(%d)\n",year);
break;
case 9:
printf(" September(%d)\n",year);
break;
case :
printf(" October(%d)\n",year);
break;
case :
printf(" November(%d)\n",year);
break;
case :
printf(" December(%d)\n",year);
break;
}
i = Year_days % 7;
printf(" Mon Tue Wed Thu Fri Sat Sun\n");
if( i != 0 )
for( temp_i = 0; temp_i < i*4; temp_i++)
printf(" ");
day = 1;
if( IsLeapYear(year) && temp == 2)
while( day <= month_day[] )
{
if( day >1 )
if( Year_days % 7 == 0 )
printf("\n");
if( day >= )
printf("%4d",day);
else
printf("%4d",day);
Year_days++;
day++;
}
else
while (day <= month_day[temp-1])
{
if( day > 1 )
if( Year_days % 7 == 0 )
printf("\n");
if( day >= )
printf("%4d",day);
else
printf("%4d",day);
Year_days++;
day++;
}
printf("\n");
if( getch() == 'q' )
exit(0);
}
getch();
}
int IsLeapYear( int year )
{
if ((year %4 == 0) && (year % != 0) ||
(year % == 0) )
return 1;
else
return 0;
}
什么是苹果源码
什么是苹果源码?
随着苹果对于企业分发证书的频繁吊销和日益收紧,代签名行业也随之迭代出了黑科技,码分码源码即所谓的发源小猪pigcms源码超级签名源码。
数字签名
数字签名(又称公钥数字签名、日源电子签章等)是码分码源码鸡西直播源码一种类似写在纸上的普通的物理签名,但是发源编程菌源码使用了公钥加密领域的技术实现,用于鉴别数字信息的日源方法。一套数字签名通常定义两种互补的码分码源码运算,一个用于签名,发源另一个用于验证。日源
数字签名,码分码源码就是发源只有信息的发送者才能产生的别人无法伪造的一段数字串,这段数字串同时也是日源看题 源码对信息的发送者发送信息真实性的一个有效证明
2024-11-18 20:01
2024-11-18 18:06
2024-11-18 17:38
2024-11-18 17:26
2024-11-18 17:22