Technote/Data Structure C++ [C++] 클래스 내부 정의의 의미와 inline Pooh0216 2009. 9. 18. 00:55 class Door{ private: int state; public: void Open(); void Close(); void ShowState(): }; inline void Door::Open(){ state=OPEN; } inline void Door::Close(){ state=CLOSE: } inline void Door::ShowState(){ cout<<"현재 문의 상태 : " ; cout<<((state==OPEN) ? "OPEN" : "CLOSE")< 저작자표시 (새창열림)