【发布时间】:2010-12-08 03:40:15
【问题描述】:
好的,我不是一个非常有经验的 C++ 程序员,但我想知道以下构造函数的参数中的下划线有什么意义?
class floatCoords
{
public:
floatCoords(float _x, float _y, float _width, float _height)
: x(_x), y(_y), width(_width), height(_height)
{
}
float x, y, width, height;
...
【问题讨论】:
标签: c++ syntax constructor arguments identifier