全局变量的检测增强
C语言中定义两个同名变量能够编译通过
int a;
int a = 10;
C++中不能编译通过
c++.cpp:5:5: 错误:‘int a’ 重定义
int a = 10;
^
c++.cpp:4:5: 附注:‘int a’ previously declared here
int a;
^
函数检测增强: 参数类型,返回值,函数调用参数个数
C语言中能够编译通过
int getRectS(w, h)
{
}
void test01()
{
getRectS(10, 10, 10);
}
类型转换检测增强
void test02()
{
char