roeas / roeas.github.io

My blog
https://roeas.github.io/
0 stars 0 forks source link

现代 C++ 随记 - Hexo #28

Open roeas opened 1 month ago

roeas commented 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(); 是声