0

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

/*What I want to make <flightNo, <hr, month day>>*/
dictionary<int, <short, short>> FlightSchedule;
dictionary<int, dictionary<short, short>> FlightSchedule;

我应该如何编写它才能符合语法?

4

1 回答 1

1

在这里我找到了解决方案。

dictionary<short, short> Time;
dictionary<int, Time> FlightSchedule

我想知道是否还有其他解决方案,因为上面的 IMO 语法等于:

dictionary<int, dictionary<short, short>> FS;
于 2014-06-25T19:12:45.040 回答