일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- c++ multi chatting room
- base from member
- virtual function table
- C++
- vector capacity
- std::vector
- virtual function
- this call
- conversion constructor
- discord bot
- std::cout
- std::ostream
- delete function
- virtual inheritance
- return by reference
- constructor
- suffix return type
- vector size
- 더 지니어스 양면포커
- member function pointer
- placement new
- operator overloading
- new&delete
- increment operator
- c++ basic practice
- pointer to member data
- diamond inheritance
- std::endl
- virtual destructor
- dynamic_cast
- Today
- Total
목록2024/08/26 (2)
I'm FanJae.

1. 프로그램의 실행파일의 생성 과정- 일반적으로 CPU를 디자인 하는 개발자는 명령어 체계도 디자인한다.- 0011, 0010, 0100, 0101 등과 같이 명령어를 구성한 이후, 이 명령어에 각각의 이름을 넣어준다.- ADD, MIN, MUL 등과 같이 말이다.- 이러한 방식의 프로그래밍이 어셈블리 프로그래밍이다. ① 전처리기에 의한 치환작업- C,C++에서 #으로 시작하는 지시자- #include, #define 등 ② 컴파일러에 의한 번역- 단계 1에서 전처리 작업이 일어나도 여전히 C언어로 구성되어 있다.- 보통 많은 컴파일러가 중간 코드에서 어셈블리 코드를 생성한다. ③ 어셈블러에 의한 바이너리 코드 생성- 어셈블러가 이러한 어셈블리 코드를 받아서 바이너리 코드(기계어 코드)로 변환한다.- ..

※ 본 포스트는 코드누리 C++ Basic 강의 내용을 보고 정리한 포스트입니다. 1. -> 연산자 재정의를 통한 Smart Pointer#include class Car{ int color;public: ~Car() { std::cout () { return obj;} Car& operator*() { return *obj;}};int main(){ Ptr p ( new Car ) ; // p는 객체, 타입 Ptr // Ptr의 객체 p가 Car* 역활을 수행 p->go(); // p.operator->()go() // (p.operator->())->go() (*p).go();}- 이 예제를 보면,..