search

Home  >  Q&A  >  body text

c++ - 关于codeblocks下的一个错误

/bVCm13

PHP中文网PHP中文网2773 days ago266

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-17 14:33:25

    Your first picture crashed, and no code was posted, only an error message was given, so there is no way to troubleshoot it...
    (It seems that the first few questions you asked all asked the same question, And no code is posted. )

    I have a question: Do you think there is no semicolon after the definition of class? It should be written as class MyClass{};

    Anyway, this is the first compilation error I encountered when writing class. As for further troubleshooting, I’ll wait for the code to be posted

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 14:33:25

    The first picture cannot be displayed. . . . . It seems that teacher should be a class and t1 is an object

    reply
    0
  • Cancelreply