Open roeas opened 1 month ago
https://roeas.github.io/2024/05/02/CPP/
序言 现代 C++ 相关的笔记。 inline 和 static 唯一定义原则 https://en.cppreference.com/w/cpp/language/definition int a;, int a = 1;, extern int a = 1; 都是定义。 extern int a; 是声明。 void foo() {} 是定义。 void foo(); 是声
https://roeas.github.io/2024/05/02/CPP/
序言 现代 C++ 相关的笔记。 inline 和 static 唯一定义原则 https://en.cppreference.com/w/cpp/language/definition int a;, int a = 1;, extern int a = 1; 都是定义。 extern int a; 是声明。 void foo() {} 是定义。 void foo(); 是声