我遇到了 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;
关于c++ - 嵌套字典语法 ICE C++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24416399/