맴버변수 (1) 썸네일형 리스트형 [C++] 클래스 밖에서 정의한 맴버 변수 예제 1234567891011121314151617181920212223242526272829303132333435363738 #include using namespace std; // Point 클래스를 정의한다.class Point{public: // 멤버 변수 int x, y; // 멤버 함수 void Print();}; void Point::Print() //Point::print()에서 '::'의 역할은 'Point클래스의print함수이다' 라는 뜻으로 이해하시면 됩니다.{ cout 이전 1 다음