local variable 'l' used without having been initiali
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/08/27 11:33:36
local variable 'l' used without having been initialized
#include
void main()
{
int max(int x,int y,int z);
int a,b,c,e;
scanf("%d,%d,%d",&a,&b,&c);
e=max(a,b,c);
printf("max=%d\n",e);
}
int max(int x,int y,int z)
{
int l;
if(x>y,x>z) x=l;
if(y>x,y>z) y=l;
else z=l;
return(l);
}
c++的初学者,还不知道上面的是不是编对了,但是编译之后只出现了local variable 'l' used without having been initialized,不知道是什么原因.这个程序是,输入a,b,c求最大值
#include
void main()
{
int max(int x,int y,int z);
int a,b,c,e;
scanf("%d,%d,%d",&a,&b,&c);
e=max(a,b,c);
printf("max=%d\n",e);
}
int max(int x,int y,int z)
{
int l;
if(x>y,x>z) x=l;
if(y>x,y>z) y=l;
else z=l;
return(l);
}
c++的初学者,还不知道上面的是不是编对了,但是编译之后只出现了local variable 'l' used without having been initialized,不知道是什么原因.这个程序是,输入a,b,c求最大值
你把max函数中的赋值表达式的左右两边的变量换一下.
你的表达式是把I的值赋给x或者y或者z.
所以会出现那样的错误,意思就是I没有被初始化.
你的表达式是把I的值赋给x或者y或者z.
所以会出现那样的错误,意思就是I没有被初始化.
local variable 'l' used without having been initiali
warning C4700:local variable 'l' used without having been in
local variable 'n' used without having been initialized
local variable 'S' used without having been initialized
local variable 'x' used without having been initialized是什么意思
warning C4700: local variable 'x' used without having been i
local variable 'd' used without having been initialized是什么意思
但是定义了之后又有提示warning C4700:local variable 'count' used without
the variable'discount' is being used without being initializ
The variable 'sele' is being used without being initialized.
eclipse中,“The local variable XXX may not have been initializ
C++运行问题:The variable 'Data' is being used without being init