From 9475704ba50d9ac8a32c0df5419799178729e32a Mon Sep 17 00:00:00 2001 From: unknown <1513801413@qq.com> Date: Wed, 9 Jan 2019 08:14:51 +0800 Subject: [PATCH] second commit --- how函数.c | 13 ------------- where函数.c | 13 +++++++++++++ 2 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 how函数.c create mode 100644 where函数.c diff --git a/how函数.c b/how函数.c deleted file mode 100644 index 0eeaad1..0000000 --- a/how函数.c +++ /dev/null @@ -1,13 +0,0 @@ -int how(int A) -{ - int i,s=0,day; - for(i=1;i<=A-1;i++) - { - if(i%4==0&&i%100!=0||i%400==0) /*****ÅжÏÊÇ·ñÊÇÈòÄê******/ - day=366; - else - day=365; - s=s+day; - } - return s; -} /*****¼ÆË㹫Ԫ-Äê-ÔÂ-ÈÕµ½ÊäÈëÄê·Ý֮ǰµÄ×ÜÌìÊý*****/ diff --git a/where函数.c b/where函数.c new file mode 100644 index 0000000..f7c60e4 --- /dev/null +++ b/where函数.c @@ -0,0 +1,13 @@ +void why(int E) +{ + switch(E) + { + case 1: printf("¸ÃÈÕÐÇÆÚÒ»\n");break; + case 2: printf("¸ÃÈÕÐÇÆÚ¶þ\n");break; + case 3: printf("¸ÃÈÕÐÇÆÚÈý\n");break; + case 4: printf("¸ÃÈÕÐÇÆÚËÄ\n");break; + case 5: printf("¸ÃÈÕÐÇÆÚÎå\n");break; + case 6: printf("¸ÃÈÕÐÇÆÚÁù\n");break; + case 7: printf("¸ÃÈÕÐÇÆÚÈÕ\n");break; + } +} /*****ÅжÏÊäÈëÈÕÆÚÊÇÐÇÆÚ¼¸*****/