use*_*683 4 c++ prototype function
在 C++ 中声明函数原型时,以下内容之间存在差异:
void SomeFunction( int Argument )
{
//Stuff
}
Run Code Online (Sandbox Code Playgroud)
相对
void SomeFunction( int )
{
//Stuff
}
Run Code Online (Sandbox Code Playgroud)
基本上我要问的是,为什么要在函数原型中编写可变参数名称而不仅仅是数据类型?
| 归档时间: |
|
| 查看次数: |
1646 次 |
| 最近记录: |