CPlusPlusThings icon indicating copy to clipboard operation
CPlusPlusThings copied to clipboard

C++那些事

Results 39 CPlusPlusThings issues
Sort by recently updated
recently updated
newest added

content error, the website is actually not available

如 `learn_class/modern_cpp_30/smart_ptr/` 下的所有 `cpp` 文件

In the session of pointer and const, I added a method to explain it.

> const指针必须进行初始化,且const指针的值不能修改。 `#include using namespace std; int main(){ int num=0; int * const ptr=# //const指针必须初始化!且const指针的值不能修改 int * t = # *t = 1; cout

``` public: ... int add(); ... }; ... int Apple::add(int num) { take(num); return 0; } ``` 上述有个细节有误,申明和定义不一致~

该 BUILD 脚本的注释中,所要编译的文件的路径应为 `cpp2.0/cpp11/variadic`,而之前却为 `cpp2.0/cpp11`。

为什么 english 目录下的文件基本没翻译a

《Effective C++》中Singleton写法是reference-returning,非pointer-returning ![image](https://github.com/Light-City/CPlusPlusThings/assets/40905056/5d893471-0b0f-4b97-9b0f-2864b5f20c3f)

C类是虚继承,大小应该是32而不是16,普通继承才是16