목록2016/05/11 (2)
MuTa
3차원 vector c++11
선언vector > vInt;// 3 Dimensions table -[4][4][4]vector > vFloat;// 3 Dimensions table -[2][3][4] 초기화if (!vInt.empty()) vInt.clear(); 할당vInt.assign(4, vector (4, vector (4, 0)));vFloat.assign(2, vector (3, vector (4, 1.1))); Get/SetvInt[1][2][3] = (int)iVAL;(float)fVAL = vFloat[2][2][2]; //그밖에...벡터 유용한 기능 int iMinVal = *std::min_element(..
MFC-C++
2016. 5. 11. 21:39