C++の関数のリロード

1250 ワード

#include <iostream>

using namespace::std;
void func(void)
{};
void func(int a)
{};
void func(int a,int b)
{};
void fun(float a)
{};

//  ,         ,  
//c  C++         C  
//_func _func_int

int main(int argc, const char * argv[]) {
    // insert code here...
    std::cout << "Hello, World!
"
; return 0; }