Static int value is the same for all elements in array

前端 未结 0 924
甜味超标
甜味超标 2020-12-20 23:47

I have a function that calculates the average of inputs but it malfunctions when used in arrays:

void Book::calculateAverage(int rating)
{
    static double s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题