* 디폴트 매개변수

int func1(int width=0, int height=0);



* 함수 오버로딩

int func(void);
int func(int);
int func(int, char);
...



*  잘못된 사용

int func(int a=10);  // A
int func(void); // B

int res = func(); // A와 B중에 무엇을 선택할지 결정할수 없음

크리에이티브 커먼즈 라이센스
Creative Commons License
2008/07/14 17:03 2008/07/14 17:03

이 글에는 트랙백을 보낼 수 없습니다

Leave a Comment
[로그인][오픈아이디란?]
1 ... 62 63 64 65 66 67 68 69 70 ... 78