如何使用vector的reserve和resize方法

reserve和resize是vector里两个很重要的方法,有效地使用这两个方法可以减少reallocate memory的次数,提高程序的性能,所以还是有必要去研究一下的,先来看一段简单的代码吧。 stdafx.h [html]  view plain  copy // stdafx.h : include file for standard system include files,   /
相关文章
相关标签/搜索