Skip to content

몇 가지 실수들.. #2

Description

@zeliard

대충 보다 보니 실수들이 보이는데...
이런거는 습관적인거라.. 좋은 습관을 의도적으로 들이는 편이 좋음.

예를 들어,

  1. 자식 클래스의 소멸자는 virtual.
  2. 구조체나 클래스 선언할 때, typedef는 C++에서 쓰지 않음.
    (클래스 내에서 typedef로 타입 이름 바꿀때는 주로 using 사용)
  3. 클래스 내부 벡터 같은 컬렉션에 대한 포인터를 클래스 외주로 넘겨주는 것들은 최대한 지양. (이건 99.9% 구조적인 문제임)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions