“cannot be used as a function error”

后端 未结 6 1175
孤城傲影
孤城傲影 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:49

    You are using growthRate both as a variable name and a function name. The variable hides the function, and then you are trying to use the variable as if it was the function - that is not valid.

    Rename the local variable.

提交回复
热议问题