Google代码规范工具之cpplint
摘要:谷歌代码规范链接: https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/ 代码规范工具—cpplint: 1)在Vscode中搜索并安装插件 cpplint 2)接着打开终端,输入 sudo pip
阅读全文
如何使用Boost库
摘要:参考文章:https://blog.csdn.net/qq_36666115/article/details/131015894 1)安装开发者工具 我们需要工具从其源代码构建 Boost 库,这里是获取所需库的命令: sudo apt-get install build-essential g++
阅读全文
关于map容器的迭代器递减操作探究
摘要:#include <iostream> #include <map> using namespace std; int main() { std::map<int, std::string> myMap = {{1, "one"}, {2, "two"}, {3, "three"}}; auto i
阅读全文
c++
摘要:取整函数ceil(),floor() https://www.cnblogs.com/zjutlitao/p/3558218.html STL reserve() https://blog.csdn.net/z644041867/article/details/40376383 #ifndef 格式
阅读全文