摘要: 题目:Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Ele... 阅读全文
posted @ 2014-10-02 22:43 晓风_7 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 最近一直在研究c++模板编程,虽然有些困难,但希望能够坚持下去.今天,在书上看见一个讨论模板编程typename与class两个关键字的区别,觉得挺有意义的,就把它们给总结一下. 先看一个例子:templatetypename C::value_type sum(C &c){ ... 阅读全文
posted @ 2014-10-02 20:16 晓风_7 阅读(368) 评论(0) 推荐(0) 编辑