摘要: C对构造函数的优化:https://sandychn.github.io/2020/04/cpp-optimizations-of-constructors/#more C引用的实现:https://sandychn.github.io/2020/03/cpp-implementation-of-r 阅读全文
posted @ 2021-11-07 12:22 DengWenchao 阅读(22) 评论(0) 推荐(0)
摘要: Microsoft Visual Studio Visual Studio Code Anaconda PyCharm GIt SVN cmake 阅读全文
posted @ 2021-09-19 21:14 DengWenchao 阅读(39) 评论(0) 推荐(0)
摘要: int function_example(const int n, const int* p, int* const p){} 这个例子中三个const分别表示:函数体里,不能通过n改n的值,不能通过p改p所指内存(一个int)的值(但可以改p的值),不能通过p改p的值,但可以通过*p改p所指内存( 阅读全文
posted @ 2021-08-28 14:32 DengWenchao 阅读(17) 评论(0) 推荐(0)
摘要: 1.cast:铸模 warning: passing argument 1 of 'shape_init' makes pointer from integer without a cast 阅读全文
posted @ 2021-08-02 21:39 DengWenchao 阅读(97) 评论(0) 推荐(0)
摘要: 1、头文件中的函数声明后要有分号 阅读全文
posted @ 2021-08-02 21:36 DengWenchao 阅读(34) 评论(0) 推荐(0)
摘要: 图示: https://www.cnblogs.com/liyiyang/p/17883987.html 阅读全文
posted @ 2021-08-01 20:44 DengWenchao 阅读(59) 评论(0) 推荐(0)