error C2065:'a' :undeclared identifier#includeint main(){int print_shang();int print_xia();print_shang();print_xia();return 0;}int print_shang(){int a,b;for(a=1;a

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 01:53:43
errorC2065:''a'':undeclaredidentifier#includeintmain(){intprint_shang();intprint_xia();print_shang();p

error C2065:'a' :undeclared identifier#includeint main(){int print_shang();int print_xia();print_shang();print_xia();return 0;}int print_shang(){int a,b;for(a=1;a
error C2065:'a' :undeclared identifier
#include
int main()
{int print_shang();
int print_xia();
print_shang();
print_xia();
return 0;
}
int print_shang()
{int a,b;
for(a=1;a

error C2065:'a' :undeclared identifier#includeint main(){int print_shang();int print_xia();print_shang();print_xia();return 0;}int print_shang(){int a,b;for(a=1;a
程序错误.你把两个函数放在main前面,并且把返回类型改为void.而且,在print_xia函数中,使用了变量a没有经过定义,所以错误for(j=1;j