//12.1
#include <stdio.h>
int f(void);
int gAll = 12;
int main(int argc, char const *argv[])
{
printf( "in %s gAll=%d\n", _func_, gAll);
f();
printf("agn in %s gAll=%d \n",_func_, gAll);
return 0;
}
int f(void)
{
printf( "in %s gAll=%d\n", _func_, gAll);
gAll +=2;
printf( "agn in %s gAll=%d\n", _func_, gAll);
return gAll;
}
DVC++版本编译器,有错误提示11行[Error] 'func' undeclared (first use in this function)
是什么问题?