随笔分类 - c语言
摘要:cmake -S . -B build cmake --build build cmake --build build --config Release cmake --install build
阅读全文
摘要:引用最大的价值是避免复制 #include <iostream> using namespace std; void method2(int& param) { param = param + 1; cout << "method2 inner:" << param << endl; //metho
阅读全文
摘要:#include <iostream> using namespace std; int a{ 1 }; int main() { int a{ 123 }; cout << "外部的a:" << a << endl; //外部的a:123 { cout << "外部的a:" << a << end
阅读全文
摘要:std::vector<std::string> split(const std::string& s, char delim) { std::vector<std::string> elems; std::istringstream iss(s); std::string item; while
阅读全文
摘要:在C++中,函数的定义确实是由返回类型、函数名和参数列表组成的。但是在某些特殊的情况下,例如回调函数的定义,我们可能会看到类似于BOOL CALLBACK PromptProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)这样的函
阅读全文
摘要:#pragma once #include "include/cef_app.h" class HttpSchemeFactory :public CefSchemeHandlerFactory { public: HttpSchemeFactory() = default; //删除拷贝函数 Ht
阅读全文
摘要:一起编译: 静态路径 要用全路径 静态编译 规范写法
阅读全文