摘要: #include <cstdio> #include <iostream> #include <sstream> #include <vector> #include <boost/array.hpp> using namespace std; using namespace boost; int 阅读全文
posted @ 2021-03-06 23:59 osbreak 阅读(58) 评论(0) 推荐(0) 编辑
摘要: boost的timer类可以计算时间的流逝,可以用来测量程序的运行时间,算法的执行时间等,提供毫秒级别的时间精度,最大的时间间隔是596小时. 阅读全文
posted @ 2021-03-06 23:44 osbreak 阅读(57) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include <sstream> #include <boost/date_time/gregorian/gregorian.hpp> using namespace std; using namespace boost 阅读全文
posted @ 2021-03-06 23:04 osbreak 阅读(276) 评论(0) 推荐(0) 编辑
摘要: #include <boost/algorithm/string.hpp> //转 大/小 写 boost::to_upper(s); std::cout << s << std::endl; boost::to_lower(s); std::cout << s << std::endl; //转 阅读全文
posted @ 2021-03-06 17:03 osbreak 阅读(470) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include <boost/lexical_cast.hpp> #include <sstream> using namespace std; using namespace boost; int main() { // 阅读全文
posted @ 2021-03-06 16:30 osbreak 阅读(125) 评论(0) 推荐(0) 编辑