vector与array区别:前者动态变化,后者固定(一年12月,一周7天比较好)
array<string, 12> arrmonths;
arrmonths[0] = "jan"; //直接类似数组访问
for(array<stirng, 12>::iterator it; it!=arrmonths.end(); ++it)//迭代器访问
vector常用函数
array<string, 12> arrmonths;
arrmonths[0] = "jan"; //直接类似数组访问
for(array<stirng, 12>::iterator it; it!=arrmonths.end(); ++it)//迭代器访问