expected unqualified-id before string constant

后端 未结 3 1078
傲寒
傲寒 2021-02-05 03:20

I\'m currently writing a C++ application which implements an Oscillator in conjuction with math.h. The code I have should work fine for the application (trying to compile an obj

3条回答
  •  [愿得一人]
    2021-02-05 03:44

    This is a simple problem.

    You just forgot the semi colon at the end of your header file.

    The compiler errors you get for missing the semi colon at the end of a class definition are very hard to relate to the actual problem - just get in the habit of checking that when you get errors after you create a class.

提交回复
热议问题