摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
转载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 阅读全文