Ejemplo n.º 1
0
 public void PrintMsg()
 {
     os.print("Item count:{0}", Items.Length);
     for (iterator <int, ItemMsg> it = Items.begin(); it; ++it)
     {
         it.value.PrintMsg();
     }
     os.print("-------------------");
     os.print("Names count:{0}", Names.Length);
     for (iterator <int, StringA> itName = Names.begin(); itName; ++itName)
     {
         os.print("({0},{1})", itName.key, itName.value);
     }
 }
Ejemplo n.º 2
0
        static void  Test()
        {
            Vector3 v = new Vector3(1, 2, 3);

            v *= 10;
            v /= 3;
            StringA            str = "abc";
            map <int, StringA> m   = new map <int, StringA>();

            m[1] = "a";
            m[2] = "b";
            for (iterator <int, StringA> it = m.begin(); it; ++it)
            {
            }
        }