“cannot be used as a function error”

后端 未结 6 1154
孤城傲影
孤城傲影 2021-02-19 01:45

I am writing a simple program that uses functions found in different .cpp files. All of my prototypes are contained in a header file. I pass some of the functions into other fun

6条回答
  •  深忆病人
    2021-02-19 01:56

    #include "header.h"
    
    int estimatedPopulation (int currentPopulation, float growthRate)
    {
        return currentPopulation + currentPopulation * growthRate  / 100;
    }
    

提交回复
热议问题