Feed on
Posts
Comments

Archive for February 29th, 2008

[C/C++] 判斷年份是否閏年

無聊幫同學寫作業,其實這還蠻簡單的,判斷閏年的方法如下
1、可以被4整除但不可以被100整除。
2、可以被400整除。
程式碼如下
#include <stdio.h>
#include <string.h>
…詳全文(共487字)

Read Full Post »