摘要:
C++ STL中vector应用#include "iostream"#include "vector"using namespace std;//输出vector中所有类容void display(vector<int> &vc){ for (int i=0;i<vc.size();i++) { cout<<vc[i]<<" "; //cout<<vc.at(i)<<" "; 也可以,二者区别在于 vc.at(i)会检查数组下标是否越界,而 阅读全文
posted @ 2013-05-23 14:19
haroel
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号