06 2020 档案
摘要:最近的项目总使用到迭代器与map,随便写个例程增加熟练度 例程介绍: 通过Type与ID查询到指定函数进行相应操作; #include <iostream> #include <vector> #include <string> #include <map> using std::string; u
阅读全文
摘要:1.返回迭代器 map_date.begin(); map_date.end(); map_date.find(find_date); #include <iostream> #include <vector> #include <string> #include <map> using std::
阅读全文
摘要:1.vector转string std::string Str = "hello world!"; std::vector<uint8_t> Vec; Vec.assign(Str.begin(), Str.end()); 2.string转vector std::string Str; std::
阅读全文
摘要:timeva结构: struct timeval { time_t tv_sec; /* Seconds. */ suseconds_t tv_usec; /* Microseconds. */ }; tm结构: struct tm{ int tm_sec; /*秒,正常范围0-59, 但允许至61
阅读全文

浙公网安备 33010602011771号