C++ 嵌套字典语法ICE C++;

C++ 嵌套字典语法ICE C++;,c++,dictionary,syntax,map,ice,C++,Dictionary,Syntax,Map,Ice,我有一个关于ZeroC ICE字典语法的新手问题。这是我尝试过的,但似乎没有任何效果 /*What I want to make <flightNo, <hr, month day>>*/ dictionary<int, <short, short>> FlightSchedule; dictionary<int, dictionary<short, short>> FlightSchedule; /*我想做什么*/ 字典

我有一个关于ZeroC ICE字典语法的新手问题。这是我尝试过的,但似乎没有任何效果

/*What I want to make <flightNo, <hr, month day>>*/
dictionary<int, <short, short>> FlightSchedule;
dictionary<int, dictionary<short, short>> FlightSchedule;
/*我想做什么*/
字典飞行时间表;
字典飞行时间表;

我应该如何编写它才能使用语法?

在这里我找到了解决方案

dictionary<short, short> Time;
dictionary<int, Time> FlightSchedule
字典时间;
字典飞行时间表
我想知道是否还有其他解决方案,因为上面的IMO语法等于:

dictionary<int, dictionary<short, short>> FS;
字典FS;

我不知道ICE是什么,但是如果你不使用C++11,你可能需要在右尖括号之间添加空格:
>
在你的第二个变体中,否则我觉得没问题。此外,在类似这样的问题中,看到编译器发出的准确错误消息总是很好的。ICE是一个多语言框架-Internet通信引擎。我正在尝试编写客户机-服务器应用程序。不幸的是,空格不起作用。