【发布时间】:2008-12-04 12:08:37
【问题描述】:
我想知道如果我有这个,是否可以计算一些数字的平均值:
int currentCount = 12;
float currentScore = 6.1123 (this is a range of 1 <-> 10).
现在,如果我收到另一个分数(比如说 4.5),我可以重新计算平均值,这样它会是这样的:
int currentCount now equals 13
float currentScore now equals ?????
或者这是不可能的,我仍然需要记住分数列表?
【问题讨论】: