[C++]생성자(Constructor)
[[연습문제 1]] #include using std::cout; using std::endl; using std::cin; class T { public: T(); T(int n); T(int a1,double a2, char b); T(char a); T(char *p); T(int a1, int a2, char *p); }; int main() { T ob, ob2, ob3; //객체 생성 T ob4(100); //객체 생성 시 인수전달 T ob5(10, 20.34, 'B'); T ob6('a'); T ob7; T ob8("Hello"); T ob9(50, 60, "Happy Birthday"); return 0; } T::T() { cout