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
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;
void temp(int, double, const char*);
void temp(int i = 4, double f = 3.143, const char* c = "");
void m();
int main()
{
m();
temp(600);
return 0;
}
void m() {
// 함수 디폴트 재정의
void temp(int, double = 1.0, const char* = "안녕하세요!");
temp(4, 6.1, "Hello Default Argument!");
temp(64);
}
void temp(int i, double f, const char* c)
{
printf("정수 :%d, 실수: %.4f, 문자: %s ", i, f, c);
}
cs

함수 내에서 함수를 재정의 할 수 있삼 ㅇㅅㅇ..