休日をCVSから読み込んで、比較する仕様を考えていましたが
CVSファイルをどこどこに置いて~というのが結構めんどくさいので、
最初から変数に入れてみました。
今思えば配列Hday[年][月][日]にすればよかったような。。。
int Hday[343]= {20050101,20050102,20050103,20050110,20050211,20050320,20050321,20050429,20050503,20050504,20050505,20050718,20050919,20050923,20051010,20051103,20051123,20051223,20051231,20060101,20060102,20060103,20060109,20060211,20060321,20060429,20060503,20060504,20060505,20060717,20060918,20060923,20061009,20061103,20061123,20061223,20061231,20070101,20070102,20070103,20070108,20070211,20070212,20070321,20070429,20070430,20070503,20070504,20070505,20070716,20070917,20070923,20070924,20071008,20071103,20071123,20071223,20071224,20071231,20080101,20080102,20080103,20080114,20080211,20080320,20080429,20080503,20080504,20080505,20080506,20080721,20080915,20080923,20081013,20081103,20081123,20081124,20081223,20081231,20090101,20090102,20090103,20090112,20090211,20090320,20090429,20090503,20090504,20090505,20090506,20090720,20090921,20090922,20090923,20091012,20091103,20091123,20091223,20091231,20100101,20100102,20100103,20100111,20100211,20100321,20100322,20100429,20100503,20100504,20100505,20100719,20100920,20100923,20101011,20101103,20101123,20101223,20101231,20110101,20110102,20110103,20110110,20110211,20110321,20110429,20110503,20110504,20110505,20110718,20110919,20110923,20111010,20111103,20111123,20111223,20111231,20120101,20120102,20120103,20120109,20120211,20120320,20120429,20120430,20120503,20120504,20120505,20120716,20120917,20120922,20121008,20121103,20121123,20121223,20121224,20121231,20130101,20130102,20130103,20130114,20130211,20130320,20130429,20130503,20130504,20130505,20130506,20130715,20130916,20130923,20131014,20131103,20131104,20131123,20131223,20131231,20140101,20140102,20140103,20140113,20140211,20140321,20140429,20140503,20140504,20140505,20140506,20140721,20140915,20140923,20141013,20141103,20141123,20141124,20141223,20141231,20150101,20150102,20150103,20150112,20150211,20150321,20150429,20150503,20150504,20150505,20150506,20150720,20150921,20150922,20150923,20151012,20151103,20151123,20151223,20151231,20160101,20160102,20160103,20160111,20160211,20160320,20160321,20160429,20160503,20160504,20160505,20160718,20160811,20160919,20160922,20161010,20161103,20161123,20161223,20161231,20170101,20170102,20170103,20170109,20170211,20170320,20170429,20170503,20170504,20170505,20170717,20170811,20170918,20170923,20171009,20171103,20171123,20171223,20171231,20180101,20180102,20180103,20180108,20180211,20180212,20180321,20180429,20180430,20180503,20180504,20180505,20180716,20180811,20180917,20180923,20180924,20181008,20181103,20181123,20181223,20181224,20181231,20190101,20190102,20190103,20190114,20190211,20190321,20190429,20190430,20190501,20190502,20190503,20190504,20190505,20190506,20190715,20190811,20190812,20190916,20190923,20191014,20191022,20191103,20191104,20191123,20191231,20200101,20200102,20200103,20200113,20200211,20200223,20200224,20200320,20200429,20200503,20200504,20200505,20200506,20200723,20200724,20200810,20200921,20200922,20201103,20201123,20201231,20210101,20210102,20210103,20210111,20210211,20210223,20210320,20210429,20210503,20210504,20210505,20210719,20210811,20210920,20210923,20211011,20211103,20211123,20211231,};
void OnInit(void){for(int i=0; i<343; i++)Print(i," ",Hday[i]);}
0 件のコメント:
コメントを投稿