반응형
struct Point {
int x;
int y;
int z;
int& operator[] (int index) {return * (&x, index);}
};
출처: http://qiita.com/_meki/items/eb17ecae1a7ba2fd458a
반응형
'C++' 카테고리의 다른 글
CString Function Example Sample (0) | 2020.06.02 |
---|---|
std::stringstream std::getline (0) | 2020.06.02 |
MFC Feature Pack - CMFCEditBrowseCtrl Get Path (0) | 2020.06.02 |
"DTD cannot be used" when loading C++ xml DOM. Methods that can be used for error messages (0) | 2020.06.02 |
AfxGetMainWnd() (0) | 2020.05.28 |