变量和类型

摘要: 一下内容转载自http://www.cplusplus.com/doc/tutorial/variables/Variables and typesThe usefulness of the "Hello World" programs shown in the previous chapter is rather questionable. We had to write several lines of code, compile them, and then execute the resulting program, just to obtain the resul 阅读全文
posted @ 2013-12-14 22:45 Dream_Fish 阅读(257) 评论(0) 推荐(0)

vector学习笔记

摘要: 以下内容转自http://www.cplusplus.com/reference/vector/vector/class templatestd::vectortemplate > class vector; // generic templateVectorVectors are sequence containers representing arrays that can change in size.Just like arrays, vectors use contiguous storage locations for their elements, which means 阅读全文
posted @ 2013-12-14 22:39 Dream_Fish 阅读(466) 评论(0) 推荐(0)

STL学习笔记序言

摘要: 笔者作为计算机科学与技术专业的学生,学习并使用C++已经有3年了。在接触STL之前的编程习惯是,所有程序的功能包括数据结构、算法等都是亲自实现,效率极其缓慢。后来从使用STL的vector开始慢慢的感觉,如果能了解更多的C++库,并会合理组合各种现有的容器和算法,那么开发效率大大提升!只学会C++的语法根本算不上是学会了C++。正如Scott Meyers在《Effective C++》中说道,要视C++为一个语言的联邦!在这里,笔者作为自己的学习笔记,把所学的知识记录下来,希望以后可以复习,或者忘记的时候回头看看,找回一些库的用法。让自己拿起高效的武器战胜更加困难的任务! 阅读全文
posted @ 2013-12-10 22:25 Dream_Fish 阅读(139) 评论(0) 推荐(0)