摘要:
If you want to concatenate assignment like thisint x, y, z;x = y = z = 15;The convention is to make the assignment operators return a reference to *this.11 Handle assignmnet to self in operator =You can easily assign an object to itself without knowing it// Example 1Foo *px, *py;px = py;//Example 2a 阅读全文
posted @ 2014-02-28 00:00
SangS
阅读(276)
评论(0)
推荐(0)

浙公网安备 33010602011771号