Artificial intelligent assistant

constと参照渡し(?)の使い方 C++Rect()consttopleftfloat &topfloat& top class Rect{ public: Rect(const float& top,const float& left,const float& bottom,const float& right){a = top; b = left; c = bottom; d = right;} void member(){std::cout << a << b << c << d << std::endl;}; float getArea(); ~Rect(){} private: float a, b, c, d; };

C++

**_topleft_**



**_float &topfloat& top_**

`float *pTop``float* pTop`?`&``*`

C++`float & top`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 4a4bff17082ea45ec4a63e56281141ee