`
wangminshe89
  • 浏览: 709760 次
文章分类
社区版块
存档分类
最新评论

[Bug]error C2236: 意外的“class” error C2236: unexpected 'class'

 
阅读更多

当用VS编译程序时,提示

error C2236: 意外的“class” 或者 error C2236: unexpected 'class'


注意检查当前类有无错误,如果确定当前类没有错误,那么检查当前类中include进来的类。


错误提示:

类定义的最后,大括号后面是否忘了";"


分享到:
评论

相关推荐

    VC++ 中的编译错误

    1. fatal error C1010: unexpected end of file while looking for precompiled header(寻找预编译头文件时意外遇到文件结束),解决方法是确保#include "stdafx.h"正确包含在*.cpp文件中,并在设置中确保预编译...

    VC++6.0编译及链接时常见问题的解决及_pragma.txt

    - **error C2011: 'C': 'class' type redefinition** - 确认类定义没有重复。 - **error C2057: expected constant expression** - 确认switch-case语句中的常量表达式。 - **error C2065: 'IDD_MYDIALOG': ...

    EurekaLog_7.5.0.0_Enterprise

    32)..Changed: Descriptions of EurekaLog project options now list corresponding property names of TEurekaModuleOptions class. 33)..Changed: Default template of ...

    python新手经常遇到的17个错误分析

    1)忘记在 if , elif , else , for , while , class ,def 声明末尾添加 :(导致 “SyntaxError :invalid syntax”) 该错误将发生在类似如下代码中: if spam== 42 print('Hello!') 2) 使用 = 而不是 ==(导致...

    CE中文版-启点CE过NP中文.exe

    Debugging: Added an option to chose if you wish to break on unexpected breakpoints, and if CE should break on unexpected breakpoints, or only on specified regions (like AA scripts) Disassembler: The ...

    Bochs - The cross platform IA-32 (x86) emulator

    class, optional commit support on Bochs exit, save/restore file attributes, 1.44 MB floppy support, set file modification date/time - converted the complete hdimage stuff to the new 'hdimage' ...

    一个win32下的ARM开源编译器

    the desired width fasmarm will give an error. If the instruction does not have both wide an narrow forms then the .W and .N suffixes are undefined. If you give no width suffix fasmarm will select the ...

    Sakemail

    but he found the error.- Hou yg has sent to me a revisited IsIPAddress function, so I put the newer function in, infortunely my reply to him doesn‘t want to go.1.8.7- Ok, I discovered a weird bug, ...

Global site tag (gtag.js) - Google Analytics