1. [编译错误]:exit was not declared in this scope
加入<stdlib.h>,后无此错误。
2.strlen was not declared in this scope
缺少
string.h |
声明了一个指针,没有分配内存
4.
前加减:变量先进行++或者--运算,然后以新的值参加表达式进行计算
后加减:变量先以旧值参加表达式的计算,然后在进行++或者--运算。
1. [编译错误]:exit was not declared in this scope
加入<stdlib.h>,后无此错误。
2.strlen was not declared in this scope
缺少
string.h |
声明了一个指针,没有分配内存
4.
前加减:变量先进行++或者--运算,然后以新的值参加表达式进行计算
后加减:变量先以旧值参加表达式的计算,然后在进行++或者--运算。