开发者

Alternative to if statement in this simple example

if(metres >= 0) return true;
else return false;

Can I开发者_如何转开发 do this with a single calculation? (ignoring the ternary operator)


return (metres >= 0);


return metres >= 0;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜