일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- c언어
- jupyter lab
- 플러터
- 도커
- gitlab
- c# 윈폼
- git
- 구조체
- dart 언어
- Houdini
- c# winform
- c# 추상 클래스
- github
- c#
- Flutter
- 포인터
- HTML
- C언어 포인터
- Python
- docker
- jupyter
- C# delegate
- C++
- Data Structure
- vim
- Algorithm
- 유니티
- 다트 언어
- 깃
- Unity
Archives
- Today
- Total
05-16 04:51
목록c++ 클래스 템플릿(Class Template) (1)
nomad-programmer
[Programming/C++] 클래스 템플릿(Class Template)
클래스 템플릿의 정의방법은 함수 템플릿의 정의방법과 동일하다. #include #pragma warning(disable: 4996) using std::cout; using std::cin; using std::endl; template class Point { private: T xpos, ypos; public: explicit Point(const T x = 0, const T y = 0) : xpos(x), ypos(y) {} void ShowPosition() const { cout
Programming/C++
2021. 2. 7. 00:57