
C++
K0000000r
这个作者很懒,什么都没留下…
展开
-
VS Code添加自定义宏
c_cpp_properties.json文件一般在项目根目录的.vscode目录下,如果没有这个文件,则需要生成,可以通过Ctrl+Shift+p快捷键调出命令面板,输入:【C/C++:编辑配置(JSON)】或英文版下输入【C/C++:Edit Configurations(JSON)】创建并打开c_cpp_properties.json。原创 2022-12-08 20:52:21 · 2497 阅读 · 0 评论 -
CLion CPU占用过高缓解办法
You can capture aCPU snapshotand send it to clion-support at jetbrains.com, we will analyse it.Also you can try disabling `C/C++ | Data flow analysis`, `C/C++ | Unused code` and `General | Simlifiable statement` inspections on the `Preferences | Editor..原创 2021-11-07 03:30:56 · 3834 阅读 · 0 评论 -
复习C++:值传递和引用传递的区别
common.hpp源代码:#ifndef _CXX_STU_BASIC_COMMON_HPP_#define _CXX_STU_BASIC_COMMON_HPP_#include <iostream>#define PRINT_FUNC_LINE() std::cout << __FUNCTION__ << ":" << __LINE...原创 2019-04-05 10:51:35 · 350 阅读 · 0 评论 -
复习C++:函数返回值和返回引用的区别
解释说明均在后面代码的注释中common.hpp源代码:#ifndef _CXX_STU_BASIC_COMMON_HPP_#define _CXX_STU_BASIC_COMMON_HPP_#include <iostream>#define PRINT_FUNC_LINE() std::cout << __FUNCTION__ << ":" ...原创 2019-04-05 21:09:39 · 615 阅读 · 0 评论