以下功能没有"返回等级",只返回0,但它可以正常工作并返回等级.怎么会这样?
int Grade(double points) { int grade = floor(0.25*points - 1.5); if (grade < 0) return 0; }
c++ return function
c++ ×1
function ×1
return ×1