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/09/03 13:05:44
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