뇌를 자극하는 C++ STL 2장 중요 예제 [5번]/*Point 클래스의 멤버 함수 포인터*/#include using namespace std; class Point{private: int x; int y;public: explicit Point(int _x = 0, int _y = 0) :x(_x), y(_y) { } void Print() const { cout C++/뇌를 자극하는 C++ STL 2017.11.11
뇌를 자극하는 C++ STL 이것만은 알고 갑시다 1장 [4번]/*다음이 컴파일 될 수 있게 최솧한의 String 클래스를 작성하세요String s("Hello!");const char *sz=s;*/#include using namespace std; class String{private: char *str;public: String(char *word) :str(word) { } void Print() { cout C++/뇌를 자극하는 C++ STL 2017.11.03