Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 더 지니어스 양면포커
- virtual function
- dynamic_cast
- std::vector
- delete function
- suffix return type
- diamond inheritance
- operator overloading
- base from member
- this call
- virtual inheritance
- vector size
- return by reference
- std::endl
- new&delete
- virtual destructor
- placement new
- increment operator
- conversion constructor
- constructor
- discord bot
- virtual function table
- pointer to member data
- C++
- c++ multi chatting room
- member function pointer
- c++ basic practice
- std::ostream
- vector capacity
- std::cout
Archives
- Today
- Total
목록RTTI (1)
I'm FanJae.
[C++] RTTI, Dynamic Cast
※ 본 포스트는 코드누리 C++ Basic 강의 내용을 보고 정리한 포스트입니다. 1. RTTI (Run Time Type Information)#include #include int main(){ int n1 = 10; auto n2 = n1; // n2의 타입은? int const std::type_info& t1 = typeid(n2); std::cout - 실행시간에 타입의 정보를 얻을 때 사용하는 기술이다. 1-1. RTTI 기술의 사용법- 헤더를 사용한다.- typeid 연산자를 사용한다.- 타입의 정보를 담은 type_info 객체를 얻을 수 있다.- type_info 객체의 멤버 함수 name()을 사용 ① Typeid#include #include i..
C++/Basic
2024. 8. 22. 16:06