#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!\n";
return 0;
}
C++的函数的重载
最新推荐文章于 2025-12-03 12:31:54 发布
388

被折叠的 条评论
为什么被折叠?



