求教:关于map容器的问题

machaoqun6666 2008-08-19 07:12:09
#include <map>
#include <string>
using std::string;
class a
{
map<string,string> p;
.............

编译出错:ISO C++ forbids declaration of 'map'with no type
map应该怎样声明定义。
...全文
189 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
machaoqun6666 2008-08-19
  • 打赏
  • 举报
回复
谢谢各位
elegant87 2008-08-19
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 richbirdandy 的回复:]
#include <map>
#include <string>
using namespace std;
[/Quote]
richbirdandy 2008-08-19
  • 打赏
  • 举报
回复
#include <map>
#include <string>
using namespace std;
clhposs 2008-08-19
  • 打赏
  • 举报
回复
using std::map;
clhposs 2008-08-19
  • 打赏
  • 举报
回复
std::map<

33,321

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧