06 2020 档案

摘要:最近的项目总使用到迭代器与map,随便写个例程增加熟练度 例程介绍: 通过Type与ID查询到指定函数进行相应操作; #include <iostream> #include <vector> #include <string> #include <map> using std::string; u 阅读全文
posted @ 2020-06-12 21:03 生而为人,学无止境 阅读(4321) 评论(0) 推荐(0)
摘要:1.返回迭代器 map_date.begin(); map_date.end(); map_date.find(find_date); #include <iostream> #include <vector> #include <string> #include <map> using std:: 阅读全文
posted @ 2020-06-11 20:31 生而为人,学无止境 阅读(3049) 评论(0) 推荐(0)
摘要: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:: 阅读全文
posted @ 2020-06-10 21:58 生而为人,学无止境 阅读(33086) 评论(0) 推荐(1)
摘要:timeva结构: struct timeval { time_t tv_sec; /* Seconds. */ suseconds_t tv_usec; /* Microseconds. */ }; tm结构: struct tm{ int tm_sec; /*秒,正常范围0-59, 但允许至61 阅读全文
posted @ 2020-06-01 21:59 生而为人,学无止境 阅读(295) 评论(0) 推荐(0)