摘要: operator= 赋值运算符,目的是想给当前对象赋值一个新的值。 比如: 有一个类A: A myclass1; A myclass2; myclass1 = myclass2; //调用赋值运算符 返回值为对象的引用目的是为了连锁赋值 x = y = z = 0; 为了实现连锁赋值,赋值运算符必须 阅读全文
posted @ 2017-10-13 23:26 CoderZSL 阅读(190) 评论(0) 推荐(0)
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2017-10-13 23:17 CoderZSL 阅读(152) 评论(0) 推荐(0)