上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 63 下一页
摘要: #include <iostream> #include <boost/date_time.hpp>using namespace std;using namespace boost::gregorian;//返回dtLastDatetime相对于dtCurDatetime日期的第几周int GetOrderWeek(const date &dtLastDatetime, const date &dtCurDatetime);void main(){int order = 100;order += 200;date myCurDatetime = fro 阅读全文
posted @ 2013-06-22 09:31 Predator 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <boost/date_time.hpp>using namespace std;using namespace boost::gregorian;void main(){date myCurDatetime = from_undelimited_string("20130602122520");int nMonth = myCurDatetime.month();int nDay = myCurDatetime.day();int nYear = myCurDatetime.year();c 阅读全文
posted @ 2013-06-22 09:30 Predator 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 转载C#程序开发中经常遇到的10条实用的代码1 读取操作系统和CLR的版本OperatingSystem os = System.Environment.OSVersion;Console.WriteLine(“Platform: {0}”, os.Platform);Console.WriteLine(“Service Pack: {0}”, os.ServicePack);Console.WriteLine(“Version: {0}”, os.Version);Console.WriteLine(“VersionString: {0}”, os.VersionString);Consol 阅读全文
posted @ 2013-06-22 09:22 Predator 阅读(271) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>usingnamespacestd;classpeople{public: voidSing() { song(); }private: virtualvoidsong()=0;}; classwhite:publicpeople{public: voidsong() { cout<<"WhiteSing"<<endl; } }; classblack:publicpeople{public: voidsong() { cout<<"BlackSing"<<e 阅读全文
posted @ 2013-06-20 21:31 Predator 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 63 下一页