【发布时间】:2011-02-09 02:14:23
【问题描述】:
所以这是我的代码的 sn-p:
struct dv_nexthop_cost_pair
{
unsigned short nexthop;
unsigned int cost;
};
map<unsigned short, vector<struct dv_nexthop_cost_pair> > dv;
我收到以下编译器错误:
error: ISO C++ forbids declaration of `map' with no type
声明这个的正确方法是什么?
【问题讨论】: