System Programmings/C++ (18) 썸네일형 리스트형 [C++] C++ 문자열 스타일 #include #include #include using namespace std; int main() { string s="the flower of eden"; string d; d=s; cout [C++] 클래스 기본 구성 및 접근자 #include using namespace std; ////////////////클래스 정의/////////////////// class oop { public: // 멤버 함수 oop(); oop(int x, int y); oop(const oop& pt); //복사 생성자 void print(); private: // 멤버 변수 int _x; int _y; public: // 접근자 void Setx(int inix); void Sety(int iniy); int Getx(); int Gety(); }; ///////////////함수 기능//////////////////// oop::oop(const oop& pt) { _x=pt._x; _y=pt._y; } void oop::Setx(int in.. 이전 1 2 3 다음