摘要: 题目:设计一个类,我们只能生成该类的一个实例。 阅读全文
posted @ 2017-09-02 22:52 涛声依旧~ 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:如下为类型CMyString的声明,请为该类型添加赋值运算符函数。 应聘者写出的代码应该考虑如下几点: 1. 是否返回值的类型声明为该类型的引用,并在函数结束前返回实例自身的引用(即*this)。只有返回一个引用才可以允许连续赋值,否则如果函数的返回值为void,应用该赋值函数运算符不能连续赋 阅读全文
posted @ 2017-09-02 22:48 涛声依旧~ 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input woul 阅读全文
posted @ 2017-09-02 22:11 涛声依旧~ 阅读(190) 评论(0) 推荐(0) 编辑