일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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언어
- Data Structure
- jupyter
- c# winform
- c#
- github
- docker
- 깃
- Houdini
- C++
- 구조체
- gitlab
- 다트 언어
- 플러터
- Algorithm
- 포인터
- 도커
- Python
- C# delegate
- Unity
- HTML
- C언어 포인터
- vim
- jupyter lab
- c# 추상 클래스
- dart 언어
- git
- c# 윈폼
- 유니티
- Flutter
Archives
- Today
- Total
목록연산자 오버로딩의 대한 예제 (1)
nomad-programmer
[Programming/C++] 연산자 오버로딩의 대한 예제
// string1.h #pragma once #include using std::ostream; using std::istream; class String { public: // 생성자와 기타 메서드 String(const char* s); // 생성자 String(); // 디폴트 생성자 String(const String& st); // 복사 생성자 ~String(); // 소멸자 int length() const { return len; } // 오버로딩 연산자 메서드 String& operator=(const String& st); String& operator=(const char* s); char& operator[](const int i); const char& operator[](cons..
Programming/C++
2023. 6. 14. 02:00