这是真么错误??????????高手解释下!!!!
--------------------Configuration: 表达式求值 - Win32 Debug--------------------Compiling...
表达式求值.c
C:\Documents and Settings\Administrator\My Documents\myfile\表达式求值.c(61) : warning C4715: 'precede' : not all control paths return a value
C:\Documents and Settings\Administrator\My Documents\myfile\表达式求值.c(128) : warning C4715: 'get_top2' : not all control paths return a value
C:\Documents and Settings\Administrator\My Documents\myfile\表达式求值.c(149) : warning C4715: 'operter' : not all control paths return a value
表达式求值.obj - 0 error(s), 0 warning(s)
precede 'get_top2' operter使自己定义的函数!!!!!11 估计是你的自定义函数里出了错。你希望函数返回某个值,但是在函数里加了if等条件判断,使得一部分情况下有返回值,而另一种情况没返回值。一个简单的例子:
int getvalue(int n)
{
if(n%2==0)
return n;
}
上例中,当n为偶数时,将n的值返回,但当n为奇数时,没有返回值,这时系统报错 楼主可以发原代码上来,给大家看一下具体是怎么回事,我猜也是跟二楼说得一样。
页:
[1]
