Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124

1、功能模块的变量封装,如放struct里面
2、跨文件的变量使用回调函数获取
应用函数调用回调函数时使用如下方法声明局部变量。实现不能通过p修改a的值,不能改变p的指向。
int a = 10;
const int *const p = &a;
或者实现能通过p修改a的值,不能改变p的指向。
3、头文件尽量在c文件中include