c++ - 为什么平均成绩是负数,而且是发生异常?
迷茫
迷茫 2017-04-17 13:28:18
0
3
551
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
Peter_Zhu

No exception occurred

float ever;

changed to

float ever = 0;

C++ variables will be randomly assigned if not initialized

巴扎黑

ever must be initialized, otherwise it will be assigned a random value

刘奇

ever is not initialized to 0

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template