☆─────────────────────────────────────☆
haveagoodday (Offer) 于 (Wed May 25 01:27:58 2005) 提到:
What is the difference between:
B b;
and
B b();
where B is a class name?
Thanks.
☆─────────────────────────────────────☆
arya (死火山下) 于 (Wed May 25 01:36:21 2005) 提到:
The latter is not a form of constructor in C++. Instead it is a form of
declaration of a function accepting no arguments and returning a B object.
☆─────────────────────────────────────☆
haveagoodday (Offer) 于 (Wed May 25 01: