int C(int x,int y) { int z; if((y==1)||(y=x+1))return 1; z=C(x-1,y-1)+C(x-1,y); return (z); }主函数调用这个函数,显示错误c was not declered in this scop.该怎么解决?
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/28 00:14:58
![int C(int x,int y) { int z; if((y==1)||(y=x+1))return 1; z=C(x-1,y-1)+C(x-1,y); return (z); }主函数调用这个函数,显示错误c was not declered in this scop.该怎么解决?](/uploads/image/z/13675878-54-8.jpg?t=int+C%28int+x%2Cint+y%29+%7B+int+z%3B+if%28%28y%3D%3D1%29%7C%7C%28y%3Dx%2B1%29%29return+1%3B+z%3DC%28x-1%2Cy-1%29%2BC%28x-1%2Cy%29%3B+return+%28z%29%3B+%7D%E4%B8%BB%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%E8%BF%99%E4%B8%AA%E5%87%BD%E6%95%B0%2C%E6%98%BE%E7%A4%BA%E9%94%99%E8%AF%AFc+was+not+declered+in+this+scop.%E8%AF%A5%E6%80%8E%E4%B9%88%E8%A7%A3%E5%86%B3%3F)
x)+Qp : RSZĨVLШ5ԬچE%Ey
U:PTF]d{MbC)+^d*γ/r'+'+(& PYP_bg
}OvvXif{"}ںl͜_`g3̂,^
zXVCMk0?58>D %X|~[ |xó}Ov=0yv @7
int C(int x,int y) { int z; if((y==1)||(y=x+1))return 1; z=C(x-1,y-1)+C(x-1,y); return (z); }主函数调用这个函数,显示错误c was not declered in this scop.该怎么解决?
int C(int x,int y) { int z; if((y==1)||(y=x+1))return 1; z=C(x-1,y-1)+C(x-1,y); return (z); }
主函数调用这个函数,显示错误c was not declered in this scop.该怎么解决?
int C(int x,int y) { int z; if((y==1)||(y=x+1))return 1; z=C(x-1,y-1)+C(x-1,y); return (z); }主函数调用这个函数,显示错误c was not declered in this scop.该怎么解决?
int C(int x,int y)
{
int z;
if((y==1)||(y=x+1))
return (1);
else
{
z=C(x-1,y-1)+C(x-1,y);
return (z);
}
}
话说函数声明了吗?