극중에 보면 중간에 탄이의 연애에 대해서 아버지는 엄청나게 걱정하면서 '어머니덕을 못보면 처가 덕이라도 봐야지'라고 꾸짖는다. 탄이 형의 경우 나이도 꽤 먹었고 그 정도면 결혼이라는 것을 생각해 볼 때가 되었다. 그런데 탄이는 이제 해봤자 겨우 고등학교 2학년이고, 그 정도 나이면 연애까지도 못가고 사귀는 정도일 것이다.

 

 과연 재벌집에서 그 나이에 그런 단순한 교제를 생각해야 할만큼 복잡할까? 그런데 여기서

반응형

'내 이야기' 카테고리의 다른 글

희망퇴직 면담이 시작되었다.  (0) 2014.05.30
The Dark Knight Returns  (0) 2014.05.28
뭔가 열정이 필요해  (0) 2014.04.27
동해안 여행  (0) 2014.04.20
군대 문화의 부정적인 영향  (0) 2014.04.18

/*
    Overriding1.cpp
*/

#include <iostream>

using std::endl;
using std::cout;

class AAA
{
public :
    void fct()
    {
        cout<<"AAA"<<endl;
    }
};

class BBB : public AAA
{
    void fct()
    {
        cout<<"BBB"<<endl;
    }
};

int main(void)

반응형

'C, C++, Java' 카테고리의 다른 글

Java의 정석 2장  (0) 2016.12.11
Score cut-off C++ program  (0) 2014.09.05
CReference2.cpp  (0) 2014.05.02
P304.cpp  (0) 2014.05.02
CPointer2.cpp  (0) 2014.05.02

/*
    CRerference2.cpp
*/

#include <iostream>

using std::cout;
using std::endl;

class Person
{
public :
    void Sleep() const
    {
        cout<<"Sleep"<<endl;
    }
};

class Student : public Person
{
public :
    void Study() const
    {
        cout<<"Study"<<endl;
    }
};

class PartTimeStd : public Student
{
public :
    void Work() const
    {
        cout<<"Work"<<endl;
    }
};

int main(void)
{
    PartTimeStd p;
    p.Sleep();
    p.Study();
    p.Work();

    Person& ref = p;
    ref.Sleep();
    //ref.Study();
    //ref.Work();

    return 0;
}

 

반응형

'C, C++, Java' 카테고리의 다른 글

Score cut-off C++ program  (0) 2014.09.05
Overriding1.cpp  (0) 2014.05.02
P304.cpp  (0) 2014.05.02
CPointer2.cpp  (0) 2014.05.02
EmployeeManager3.cpp  (0) 2014.05.02

/*
    CRerference1.cpp
*/

#include <iostream>

using std::cout;
using std::endl;

class Person
{
public :
    void Sleep() const
    {
        cout<<"Sleep"<<endl;
    }
};

class Student : public Person
{
public :
    void Study() const
    {
        cout<<"Study"<<endl;
    }
};

class PartTimeStd : public Student
{
public :
    void Work() const
    {
        cout<<"Work"<<endl;
    }
};

int main(void)
{
    PartTimeStd p;
    Student& ref1 = p;
    Person&  ref2 = p;

    p.Sleep();
    ref1.Sleep();
    ref2.Sleep();

    return 0;
}

 

반응형

'C, C++, Java' 카테고리의 다른 글

Overriding1.cpp  (0) 2014.05.02
CReference2.cpp  (0) 2014.05.02
CPointer2.cpp  (0) 2014.05.02
EmployeeManager3.cpp  (0) 2014.05.02
Person.cpp  (0) 2014.04.30

 결국 뭐 좀 해볼려고 하면, 결국에는 포인터로 귀결이 되는구나.

 

/*
    CPointer2.cpp
*/

#include <iostream>
#include <string.h>

using std::cout;
using std::endl;

class Person
{
public :
    void Sleep()
    {
        cout<<"Sleep"<<endl;
    }
};

class Student : public Peson
{
public :
    void Study()
    {
        cout<<"Study"<<endl;
    }
};

class PartTimeStd : public Student
{
public :
    void Work()
    {
        cout<<"Work"<<endl;
    }
};

int main(void)
{
    Person* p3 = new PartTimeStd;

    p3->Sleep();

    return 0;
}

반응형

'C, C++, Java' 카테고리의 다른 글

CReference2.cpp  (0) 2014.05.02
P304.cpp  (0) 2014.05.02
EmployeeManager3.cpp  (0) 2014.05.02
Person.cpp  (0) 2014.04.30
P256.cpp  (0) 2014.04.30

/*
 EmployeeManager3.cpp
*/

#include <iostream>
#include <string.h>

using std::cout;
using std::endl;

/*=======================================*/
/*           */
/*    Employee Class    */
/*           */
/*=======================================*/

class Employee
{
protected :
    char name[20];

public :
    Employee(const char* _name);
    const char* GetName() const;
};

Employee::Employee(const char* _name)
{
    strcpy(name, _name);
}

const char* Employee::GetName() const
{
    return name;
}


/*=======================================*/
/*           */
/*        Permanent Class           */
/*           */
/*=======================================*/

class Permanent : public Employee
{
private :
    int salary;

public :
    Permanent(const char* _name, int sal);
    int GetPay() const;
};

Permanent::Permanent(const char* _name, int sal) : Employee(_name)
{
    salary = sal;
}

int Permanent::GetPay() const
{
    return salary;
}

/*=======================================*/
/*           */
/*        Temporary Class            */
/*           */
/*=======================================*/
class Temporary : public Employee
{
private :
    int time;
    int pay;

public :
    Temporary(const char* _name, int _time, int _pay);
    int GetPay() const;
};

Temporary::Temporary(const char *_name, int _time, int _pay) : Employee(_name)
{
    time = _time;
    pay  = _pay;
}

int Temporary::GetPay() const
{
    return time * pay;
}

/*=======================================*/
/*           */
/*        Department Class           */
/*           */
/*=======================================*/
class Department
{
private :
    Employee* empList[100];
    int index;

public :
    Department() : index(0) {};
    void AddEmployee(Employee* emp);
    void ShowList() const;
};

void Department::AddEmployee(Employee *emp)
{
    empList[index++] = emp;
}

void Department::ShowList() const
{
    for(int i = 0; i < index; i++)
    {
        cout<<"name   : "<<empList[i]->GetName()<<endl;
        //cout<<"salary : "<<empList[i]->GetPay()<<endl;
        cout<<endl;
    }
}

/*=======================================*/
/*           */
/*         Main Function             */
/*           */
/*=======================================*/
int main(void)
{
    Department dept;

    //직원등록
    dept.AddEmployee(new Permanent("KIM", 1000));
    dept.AddEmployee(new Permanent("PARK", 1500));

    dept.AddEmployee(new Temporary("HAN", 10, 200));
    dept.AddEmployee(new Temporary("JANG", 12, 300));

    dept.ShowList();

    return 0;
}

반응형

'C, C++, Java' 카테고리의 다른 글

P304.cpp  (0) 2014.05.02
CPointer2.cpp  (0) 2014.05.02
Person.cpp  (0) 2014.04.30
P256.cpp  (0) 2014.04.30
Student.cpp  (0) 2014.04.30

+ Recent posts