- 博客(88)
- 收藏
- 关注
原创 让你的C++代码变得更加高效和优雅的技巧(第一集)
本文介绍了更多的 C++ 编程技巧,包括使用constexpr、迭代器算法、智能指针和 RAII、 lambda 表达式、noexcept、模板元编程和 std::optional。但是,C++ 也是一门复杂的语言,需要程序员有一定的技巧才能写出高效和优雅的代码。使用 std::optional 可以避免使用指针或特殊值表示缺失的情况,提高程序的可读性和可维护性。使用模板元编程可以提高程序的性能和可维护性。将函数参数和变量声明为 const,可以避免不必要的拷贝和修改,提高程序的性能和可读性。
2023-05-04 21:00:00
1269
原创 Linux 的 grep 命令使用大全
grep是一个强大的文本搜索工具,在Linux和Unix系统中非常常用。本文介绍了一些grep命令的基本用法,包括查找单词、查找多个文件、递归搜索、
2023-04-21 13:47:16
749
原创 collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
2023-01-05 09:00:00
1496
原创 static 关键字在定义成员函数的时候报错: Cannot declare member function ...to have static linkage“
static 关键字在定义成员函数的时候报错: Cannot declare member function ...to have static linkage“
2023-01-04 11:01:25
1252
原创 Unable to start debugging. Launch options string provided by the project system is invalid.
"Unable to start debugging. Launch options string provided by the project system is invalid. The type initializer for 'System.Xml.Serialization.XmlSerializationReader' threw an exception" when debugging
2022-08-30 16:30:42
2619
原创 报错:Plug-ins declaring extensions or extension points must set the singleton directive to true
报错:Plug-ins declaring extensions or extension points must set the singleton directive to true
2022-06-22 10:57:08
377
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人