Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Seok-joon Yun
394 views
[KOSSA] C++ Programming - 14th Study - template
[KOSSA] C++ Programming - 14th Study - template
Software
◦
Read more
2
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 16
2
/ 16
3
/ 16
4
/ 16
5
/ 16
6
/ 16
7
/ 16
8
/ 16
9
/ 16
10
/ 16
11
/ 16
12
/ 16
13
/ 16
14
/ 16
15
/ 16
16
/ 16
More Related Content
TXT
Python codigo graficas
by
Brayan Kalaka
PPT
Vcs12
by
Malikireddy Bramhananda Reddy
TXT
Zadatak
by
Zeljko Lukic
TXT
Practica 4 errores
by
UVM
DOCX
Rafael torrest
by
rfltorres
DOCX
Dij
by
Tushar Bedke
PPTX
Kelompok 2.5
by
1300018075
DOC
Absolute Loader
by
ksanthosh
Python codigo graficas
by
Brayan Kalaka
Vcs12
by
Malikireddy Bramhananda Reddy
Zadatak
by
Zeljko Lukic
Practica 4 errores
by
UVM
Rafael torrest
by
rfltorres
Dij
by
Tushar Bedke
Kelompok 2.5
by
1300018075
Absolute Loader
by
ksanthosh
What's hot
KEY
python-geohex
by
遼 会田
PDF
contoh Program C++ tentang fungsi for
by
M Fahmi Ansori
PPT
Vcs6
by
Malikireddy Bramhananda Reddy
DOCX
exercise of basic computer programming.docx
by
miftah88
TXT
C Program : Sorting : Bubble,
by
Meita Jayani
DOCX
Luis cuñas programacion
by
luisitofranklin
DOCX
C - Pattern - Code - [Future Programming]
by
Future Programming
DOCX
Dsa 1
by
Harisrasheed48
DOC
Selection
by
innocentisha
DOCX
listing output program C
by
AdjievanGestu
TXT
Hipo
by
Erick Antonio López Villatoro
RTF
Aman
by
Sejal Bhatewara
TXT
Ugd9 c 7644
by
Yohanes G
PDF
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
by
Chris Ohk
DOCX
Programacion
by
saraguaman15465
DOCX
Info clasa
by
Ilinca Ostroschi
TXT
Gauss jordan
by
Diego Zevallos
PPTX
Como crear una matriz de 3x3 con c++ con menu
by
JoseGCordero
DOCX
Clear all
by
SeptiNia Choirun Nisa
python-geohex
by
遼 会田
contoh Program C++ tentang fungsi for
by
M Fahmi Ansori
Vcs6
by
Malikireddy Bramhananda Reddy
exercise of basic computer programming.docx
by
miftah88
C Program : Sorting : Bubble,
by
Meita Jayani
Luis cuñas programacion
by
luisitofranklin
C - Pattern - Code - [Future Programming]
by
Future Programming
Dsa 1
by
Harisrasheed48
Selection
by
innocentisha
listing output program C
by
AdjievanGestu
Hipo
by
Erick Antonio López Villatoro
Aman
by
Sejal Bhatewara
Ugd9 c 7644
by
Yohanes G
[C++ Korea] Effective Modern C++ Study, Item 27, 29 - 30
by
Chris Ohk
Programacion
by
saraguaman15465
Info clasa
by
Ilinca Ostroschi
Gauss jordan
by
Diego Zevallos
Como crear una matriz de 3x3 con c++ con menu
by
JoseGCordero
Clear all
by
SeptiNia Choirun Nisa
Viewers also liked
PPT
Oops ppt
by
abhayjuneja
PPTX
Templates in C++
by
Tech_MX
PPTX
Templates presentation
by
malaybpramanik
PDF
Template at c++
by
Lusain Kim
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (4) - Executing System
by
상현 조
PDF
Generic programming
by
Platonov Sergey
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (3) - Exception
by
상현 조
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (8) - Group System
by
상현 조
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (2) - Perfornance
by
상현 조
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (1)
by
상현 조
PDF
An Introduction To C++Templates
by
Ganesh Samarthyam
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (5) - Executor with Exception
by
상현 조
PPT
Templates
by
Nilesh Dalvi
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (7) - Multiple Inhertance
by
상현 조
PPT
GCGC- CGCII 서버 엔진에 적용된 기술 (6) - CGCII Server Sample
by
상현 조
PPT
OOP
by
Syed Zaid Irshad
DOCX
C++ Template
by
Saket Pathak
Oops ppt
by
abhayjuneja
Templates in C++
by
Tech_MX
Templates presentation
by
malaybpramanik
Template at c++
by
Lusain Kim
GCGC- CGCII 서버 엔진에 적용된 기술 (4) - Executing System
by
상현 조
Generic programming
by
Platonov Sergey
GCGC- CGCII 서버 엔진에 적용된 기술 (3) - Exception
by
상현 조
GCGC- CGCII 서버 엔진에 적용된 기술 (8) - Group System
by
상현 조
GCGC- CGCII 서버 엔진에 적용된 기술 (2) - Perfornance
by
상현 조
GCGC- CGCII 서버 엔진에 적용된 기술 (1)
by
상현 조
An Introduction To C++Templates
by
Ganesh Samarthyam
GCGC- CGCII 서버 엔진에 적용된 기술 (5) - Executor with Exception
by
상현 조
Templates
by
Nilesh Dalvi
GCGC- CGCII 서버 엔진에 적용된 기술 (7) - Multiple Inhertance
by
상현 조
GCGC- CGCII 서버 엔진에 적용된 기술 (6) - CGCII Server Sample
by
상현 조
OOP
by
Syed Zaid Irshad
C++ Template
by
Saket Pathak
More from Seok-joon Yun
PDF
[2015-07-10-윤석준] Oracle 성능 관리 & v$sysstat
by
Seok-joon Yun
PDF
Sprint & Jira
by
Seok-joon Yun
PDF
C++ Concurrency in Action 9-2 Interrupting threads
by
Seok-joon Yun
PDF
[2015 07-06-윤석준] Oracle 성능 최적화 및 품질 고도화 4
by
Seok-joon Yun
PDF
[2015-07-20-윤석준] Oracle 성능 관리 2
by
Seok-joon Yun
PPTX
Doing math with python.ch01
by
Seok-joon Yun
PDF
Eks.introduce
by
Seok-joon Yun
PPTX
Doing math with python.ch04
by
Seok-joon Yun
PPTX
Pro typescript.ch03.Object Orientation in TypeScript
by
Seok-joon Yun
PDF
Welcome to Modern C++
by
Seok-joon Yun
PDF
AWS DEV DAY SEOUL 2017 Buliding Serverless Web App - 직방 Image Converter
by
Seok-joon Yun
PPTX
Doing mathwithpython.ch02
by
Seok-joon Yun
PPTX
Doing math with python.ch07
by
Seok-joon Yun
PPTX
Doing math with python.ch05
by
Seok-joon Yun
PPTX
Doing math with python.ch06
by
Seok-joon Yun
PPTX
Doing math with python.ch03
by
Seok-joon Yun
PDF
아파트 시세,어쩌다 머신러닝까지
by
Seok-joon Yun
PPTX
Eks.introduce.v2
by
Seok-joon Yun
PPTX
Pro typescript.ch07.Exception, Memory, Performance
by
Seok-joon Yun
PDF
Retrospective.2020 03
by
Seok-joon Yun
[2015-07-10-윤석준] Oracle 성능 관리 & v$sysstat
by
Seok-joon Yun
Sprint & Jira
by
Seok-joon Yun
C++ Concurrency in Action 9-2 Interrupting threads
by
Seok-joon Yun
[2015 07-06-윤석준] Oracle 성능 최적화 및 품질 고도화 4
by
Seok-joon Yun
[2015-07-20-윤석준] Oracle 성능 관리 2
by
Seok-joon Yun
Doing math with python.ch01
by
Seok-joon Yun
Eks.introduce
by
Seok-joon Yun
Doing math with python.ch04
by
Seok-joon Yun
Pro typescript.ch03.Object Orientation in TypeScript
by
Seok-joon Yun
Welcome to Modern C++
by
Seok-joon Yun
AWS DEV DAY SEOUL 2017 Buliding Serverless Web App - 직방 Image Converter
by
Seok-joon Yun
Doing mathwithpython.ch02
by
Seok-joon Yun
Doing math with python.ch07
by
Seok-joon Yun
Doing math with python.ch05
by
Seok-joon Yun
Doing math with python.ch06
by
Seok-joon Yun
Doing math with python.ch03
by
Seok-joon Yun
아파트 시세,어쩌다 머신러닝까지
by
Seok-joon Yun
Eks.introduce.v2
by
Seok-joon Yun
Pro typescript.ch07.Exception, Memory, Performance
by
Seok-joon Yun
Retrospective.2020 03
by
Seok-joon Yun
[KOSSA] C++ Programming - 14th Study - template
3.
3 http://ko.wikipedia.org/wiki/제네릭_프로그래밍
4.
4 http://ko.wikipedia.org/wiki/표준_템플릿_라이브러리
6.
6 #include <iostream> int Max(int
a, int b) { return a > b ? a : b; } void main() { int nA = 300; int nB = 400; int nC = Max(nA, nB); std::cout << "Max (300 , 400) = " << nC << std::endl; float fD = 15.1f; float fE = 15.3f; float fF = Max(fD, fE); std::cout << "Max (15.1 , 15.3) = " << fF << std::endl; }
7.
7 float Max(float a,
float b) { return a > b ? a : b; }
8.
8
9.
9 template <typename T> T
Max(T a, T b) { return a > b ? a : b; } int 를 넣으면 모든 T 가 다 int int Max(int a, int b) { return a > b ? a : b; }
10.
10 template <typename T> T
Max(T a, T b) { return a > b ? a : b; } void main() { int nA = 300; int nB = 400; int nC = Max(nA, nB); std::cout << "Max (300 , 400) = " << nC << std::endl; float fD = 15.1f; float fE = 15.3f; float fF = Max(fD, fE); std::cout << "Max (15.1 , 15.3) = " << fF << std::endl; }
11.
11 template <typename T1,
typename T2 > T1 Max(T1 a, T2 b) { return a > b ? a : b; }
12.
12 template <typename T,
int VAL> T AddValue(T& value) { return value + VAL; } 여기에 500을 넣으면
13.
13 typename T template <typename
T> T Max(T a, T b) { return a > b ? a : b; } float Max(float a, float b) { return a > b ? a : b; } int Max(int a, int b) { return a > b ? a : b; }
15.
15 class Data { int data; public: Data(int
d) { data = d; } void SetData(int d) { data = d; } int GetData() { return data; } };
16.
16 template <typename T> class
Data { T data; public: Data(T d) { data = d; } void SetData(T d) { data = d; } T GetData() { return data; } };
Download