添加函数调用时,未添加‘;’结束符
{ ... call_func(...) ... }
- 修改函数入参,函数调用或声明的地方没有全部修改
结构体访问成员变量
结构体指针:structTmp->test
结构体变量:structTmp.testsprintf中含有%s,需要加’\%’
sprintf(tmp, "test sprintf has \%%s")
C++中define定义的字符串宏定义不能进行string类型连接
#define TEST_STRING "test string" string test = "string and " + TEST_STRING; //这样操作会报不能连接const char
- 代码中调用命令,最好手动在系统里执行下
- 同一函数多次调用时,一定要确认好入参
- 编写功能模块前,尽量理清并画出关联、逻辑图