g****n 发帖数: 14 | 1 抛砖引玉吧 :)
const int DAYS_80_99 = 20 * 365 + 5;
const int CYCLE_400 = 365 * 400 + 97;
const int CYCLE_100_L = 365 * 100 + 25;
const int CYCLE_100_N = 365 * 100 + 24;
const int CYCLE_4_L = 365 * 4 + 1;
const int CYCLE_4_N = 365 * 4;
// input: cDay - number of days since Jan 1, 1980.
// For Jan 1, 1980, cDay==0
// output: year, day (this first day of a year is represented as 0).
void year(int cDay, int& year, int& day)
{
int days = cDay;
int years = 1980;
if (days >= DAYS_80_99)
|
|
|
p*********a 发帖数: 266 | 3 啊。。。三姐生日啊。。。
生日快乐啊。。。
不知道晚了没有。
是happy bday还是cday 啊。。。。 |
|
t*******e 发帖数: 2113 | 4 谢谢猪猪~~吃好喝好身体养好哈!
撒子是Cday? |
|
|
|