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

前端 未结 3 403
走了就别回头了
走了就别回头了 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 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.

提交回复
热议问题