摘要: 基本概念: 对已有的运算符赋予多重的含义 使同一运算符作用于不同类型的数据时,有不同类型的行为 目的是扩展C++中提供的运算符的适用范围,以用于类所表示的抽象数据类型 运算符重载的实质是函数重载: 返回值类型 operator 运算符(形参表) { } 可重载为普通函数和成员函数,成员函数的形参中因 阅读全文
posted @ 2018-03-20 17:54 宵夜在哪 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserv 阅读全文
posted @ 2018-03-20 17:14 宵夜在哪 阅读(75) 评论(0) 推荐(0) 编辑