Skip to content

Commit

Permalink
Update PRG-0008-A-Game-Development-Blackboard-Part-3.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Caizc committed Jan 25, 2021
1 parent 181fd6e commit 86d2d06
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions PRG-0008-A-Game-Development-Blackboard-Part-3.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Game Development Blackboard - Part 3

## 2021-01-25 星期一

### C++ 中 .h 和 .cpp 的作用

* [理解 C++ 中头文件和源文件的作用 - 菜鸟教程](https://www.runoob.com/w3cnote/cpp-header.html)

> .h 文件中能包含:
>
> - 类成员数据的声明,但不能赋值
> - 类静态数据成员的定义和赋值,但不建议,只是个声明就好
> - 类的成员函数的声明
> - 非类成员函数的声明
> - 常数的定义:如:`constint a=5;`
> - 静态函数的定义
> - 类的内联函数的定义
>
> 不能包含:
>
> - 所有非静态变量(不是类的数据成员)的声明
> - 默认命名空间声明不要放在头文件,`using namespace std;` 等应放在 .cpp 中,在 .h 文件中使用 `std::string`
## 2021-01-21 星期四

### Gameplay Abilities System
Expand Down

0 comments on commit 86d2d06

Please sign in to comment.