摘要:
有时候经常要实现程序在某个时间段进行某些操作的功能,如果利用boost库的话可以很方便就能实现。[cpp] #include<boost/date_time/posix_time/posix_time.hpp> #include<boost/date_time/gregorian/gregorian.hpp> //首先要定义一个时间区间段,设程序需在每日的8:50~9:15之间实现某些操作; boost::posix_time::time_period*pTimePeriod=NULL; boost::posix_time::ptimept(b... 阅读全文
posted @ 2012-09-28 17:38
瑞尼书苑
阅读(696)
评论(0)
推荐(0)
浙公网安备 33010602011771号