<<< | Index | >>> |
|
// point.h class Point { public: int& refx(); private: int m_x; int m_y; }; |
// point.cpp #include "point.h" int& Point::refx() { return m_x; } |
|
// main.cpp #include "point.h" void main() { Point pt; pt.refx() = 14; } |
<<< | Index | >>> |