CPlusPlusThings
CPlusPlusThings copied to clipboard
C++那些事
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 
C类是虚继承,大小应该是32而不是16,普通继承才是16
add observer pattern example.