最赞回答 / 红尘路匆匆
i=i++ 应该直接写成i++ i++;就等价于i=i+1否则i一直等于1,循环永远无法退出 自然timeout同时 你应该将i++;与sum=sum+i;换位置 因为你的i初始值为1
2017-10-01
最新回答 / 慕盖茨4133583
1、被调函数如果放在主调函数后面,就需要在调用前声明被调函数;2、int alow(int score) 形参类型应该是整形数组;3、 sum/=10; 若想得到float型,应 sum/=10.0, 若不想出现warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [- Wformat=]|, 就把float改为doubl...
2017-09-29