멤버변수 (1) 썸네일형 리스트형 [C++] 함수 안에서 정의한 변수와 멤버 변수의 이름이 같은 경우 12345678910111213141516171819202122232425262728293031323334353637383940 #include using namespace std; // Point 클래스를 정의한다.class Point{public: // 멤버 변수 int x, y; // 멤버 함수 void Print();}; // 멤버 함수void Point::Print(){ int x = 333; cout 이전 1 다음