#include<iostream>
void MyFunc(void)
{
std::cout << "MyFunc(void) called" << std::endl;
}
void MyFunc(char c)
{
std::cout << "MyFunc (char c) called" << std::endl;
}
void MyFunc(int a, int b)
{
std::cout << "MyFunc(int a, int b) called" << std::endl;
}
int main(void) {
MyFunc();
MyFunc('A');
MyFunc(12, 13);
return 0;
}
* 함수호출 시 전달되는 인자의 수와 데이터형에 따라 구분 -> 이름에 따라 구분