#include <windows.h>
#define IMDM_NEW 10
#define IDM_OPEN 11
#define IDM_CLOSE 12
#define IDM_SAVE 13
#define IDM_SAVEAS 14
#define IDM_EXIT 15
MENU MENU MOVEALBE
{
POPUP"文件(&N)"
{
MENUITEM "新建(&N)",IDM_NEW
MENUITEM "打开(&O)",IDM_OPEN
MENUITEM "关闭(&C)",IDM_CLOSE
MENUITEM "保存(&S)",IDM_SAVE
MENUITEM "另存为(&A)",IDM_SAVEAS
MENUITEM SEPARATOR
MENUITEM "退出(&X)",IDM_EXIT
}
}
以上代码出错,具体信息如下,为什么?
error C2146: syntax error : missing ';' before identifier 'MENU'
error C2501: 'Menu' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found