我有以下看似无害的代码:
#ifndef UI_H
#define UI_H
#include <string>
namespace ui
{
//Displays the main menu, showing loaded vocabulary cards
//
//Returns upon completion of display
void displayMainMenu();
//...More code like the above, just comments followed by functions
}
#endif
Run Code Online (Sandbox Code Playgroud)
这给了我这个错误信息:
filepath/ui.h:6: error: expected unqualified-id before 'namespace'
Run Code Online (Sandbox Code Playgroud)
我在这做错了什么?