Mittwoch, 15. Dezember 2010

Test for Insert Code plug-in

   1: void BoostTests()



   2: {



   3:     DbgLog(__FUNCTIONW__);



   4:  



   5:     boost::array<int, 3> myIntArray;



   6:     myIntArray[0] = 2;



   7:     myIntArray[1] = 8;



   8:     myIntArray[2] = 1976;



   9:  



  10:     int result = 0;



  11:  



  12:     foreach (int number, myIntArray)



  13:     {



  14:         result += number;



  15:     }



  16: }


Keine Kommentare: