在C++中声明函数原型时,以下两种方式有什么区别:
void SomeFunction( int Argument )
{
//Stuff
}
对比
void SomeFunction( int )
{
//Stuff
}
我想问的是,为什么在函数原型中写入变量参数名而不仅仅是数据类型?