“cannot be used as a function error”

后端 未结 6 1169
孤城傲影
孤城傲影 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 02:07

    Your compiler is right. You can't use the growthRate variable you declared in main as a function.

    Maybe you should pick different names for your variables so they don't override function names?

提交回复
热议问题