new types may not be defined in a return type - C++

前端 未结 3 414
走了就别回头了
走了就别回头了 2021-02-03 16:55

I am confused I think on C++ class structure.

I have a .h called FxMathFunctions.h and a .cpp called FxMathFunctions.cpp

the .h starts like:

clas         


        
相关标签:
3条回答
  • 2021-02-03 17:38

    Losing ; in the end of class declaration could lead to such error.

    0 讨论(0)
  • 2021-02-03 17:41

    Class declaration ends with a semicolon.

    0 讨论(0)
  • 2021-02-03 18:02

    What does your .h file end with? I'm guessing that the end of your class defnition does not have a ";". The class is being interpreted as the return type of the first function in your cpp file.

    0 讨论(0)
提交回复
热议问题