일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- C++
- 커널
- 취약점
- 리눅스 커널
- Leviathan
- 시스템해킹
- 시그널
- Bandit
- 워게임
- pwncollege
- 시스템프로그래밍
- pwn.college
- 리눅스
- px4
- radare2
- C언어
- 시스템 프로그래밍
- kernel
- 프로그래밍
- css
- 리눅스커널
- 드론
- wargame
- 어셈블리어
- Pwnable.kr
- write up
- 리버싱
- 시스템
- 알고리즘
- 컴퓨터구조
Archives
- Today
- Total
목록객체지향프로그래밍 (1)
Computer Security
#3 C++ 생성자와 소멸자
C++의 생성자 -C++에서는 생성자(Constructor)를 이용해 객체를 생성함과 동시에 멤버 변수를 초기화할 수 있다. -생성자는 특별한 메소드로, 클래스의 이름과 동일한 이름의 메소드로 구현된다. -생성자는 반환 값이 없다. 생성자는 여러 번 정의되어 다양한 방법으로 객체를 초기화할 수 있다. 코드 예시 #include #include using namespace std; class Character { private: string name; int ragePoint; int hp; int damage; public: Character(string n, int h, int d) { this->name = n; this->ragePoint = 0; this->hp = h; this->damage =..
프로그래밍/C++
2022. 6. 14. 18:30