【发布时间】:2011-06-23 08:05:38
【问题描述】:
#ifndef STRCUTS_H
#define STRCUTS_H
#include <string>
struct menuEntry
{
string itemID; //'string' does not name a type
string itemName; //'string' does not name a type
};
#endif
当我将#include 放在标头保护上方时,我得到了同样的错误。想想看,我之前在标题中放置结构定义时遇到了奇怪的麻烦。一定是我没有得到的东西。
【问题讨论】:
标签: c++ header struct include types