| Rectangle::Rectangle (int x, int y) { width=x; height=y; } |
| Rectangle::Rectangle (int x, int y) : width(x) { height=y; } |
| Rectangle::Rectangle (int x, int y) : width(x), height(y) { } |
本文共 371 字,大约阅读时间需要 1 分钟。
| Rectangle::Rectangle (int x, int y) { width=x; height=y; } |
| Rectangle::Rectangle (int x, int y) : width(x) { height=y; } |
| Rectangle::Rectangle (int x, int y) : width(x), height(y) { } |
转载于:https://www.cnblogs.com/vigorz/p/10499130.html