{"rsdb":{"rid":"156012","subhead":"","postdate":"0","aid":"117118","fid":"49","uid":"1","topic":"1","content":"
\n

C\/C++<\/a>STL\u591a\u7ef4\u6570\u7ec4(vector(vector() ))\uff1aSTL\u672c\u8eab\u5e76\u6ca1\u6709\u4e8c\u7ef4\u4e09\u7ef4\u6570\u7ec4\u7684\u6982\u5ff5\u3002\u4f46\u662f\u5e76\u4e0d\u662f\u8bf4STL\u4e0d\u652f\u6301\u591a\u7ef4\u6570\u7ec4\u3002\u6211\u4eec\u53ef\u4ee5\u7528\u5411\u91cfvector\u6765\u6784\u9020\u591a\u4f4d\u6570\u7ec4\u3002<\/p> \n

\u5b9a\u4e49\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\uff1a<\/h2> \n
\r\nvector\n  \n    > ivv;     \n  <\/vector<\/pre> \n 

\u5bf9\u8c61ivv\u662f\u5411\u91cf\u7684\u5411\u91cf\uff0c\u76f8\u5f53\u4e8e\u4e00\u4e2a\u4e8c\u7ef4\u6570\u7ec4\uff0c\u4f46\u662f\u5404\u7ef4\u4e0a\u5143\u7d20\u7684\u6570\u76ee\u53ef\u4ee5\u4e0d\u540c\u3002
\u9700\u8981\u6ce8\u610f\u7684\u662f\u4e24\u4e2a\u201d>\u201d\u7b26\u53f7\u4e4b\u95f4\u5fc5\u987b\u6709\u7a7a\u683c\uff0c\u5426\u5219\u4f1a\u88ab\u8ba4\u4e3a\u662f\u201d>>\u201d\u64cd\u4f5c\u7b26\uff0c\u800c\u9020\u6210\u9519\u8bef\u3002<\/p> \n

\u4e0b\u9762\u8fd8\u662f\u7528\u5b9e\u9645\u4f8b\u5b50\u6765\u8bf4\u660e\u7528\u6cd5\uff1a<\/h2> \n
\r\n\/\/ STL  \u591a\u7ef4\u6570\u7ec4(vector\n  \n    >)\r\n#include \n   \n     #include \n    \n      using namespace std; int main() { vector\n     \n       > VectorArray; \/\/\u5411\u91cf\u7684\u5411\u91cf > >\u4e2d\u95f4\u6709\u4e2a\u7a7a\u683c vector\n      \n        a; vector\n       \n        ::iterator sit; \/\/\u8fed\u4ee3\u5668 a.push_back(4); a.push_back(26); a.push_back(77); vector\n        \n          b; b.push_back(7); b.push_back(26); b.push_back(75); VectorArray.push_back(a); \/\/\u5411\u91cf\u5bf9\u8c61a\u63d2\u5165 VectorArray.push_back(b); \/\/\u5411\u91cf\u5bf9\u8c61b\u63d2\u5165 int anInt; vector\n         \n           >::iterator it; vector\n          \n            MyList; for (it = VectorArray.begin(); it != VectorArray.end(); ++it) { MyList = *it; for (sit = MyList.begin(); sit != MyList.end(); ++sit) { anInt = *sit; cout<\n           <\/anint<<\">\n          <\/int>\n         <\/vector\n        <\/int>\n       <\/int>\n      <\/int>\n     <\/vector\n    <\/vector>\n   <\/iostream>\n  <\/vector<><\/pre> \n<\/dd>","orderid":"0","title":"C\/C++STL\u591a\u7ef4\u6570\u7ec4(vector(vector() ))","smalltitle":"","mid":"0","fname":"c++\u7f16\u7a0b\u57fa\u7840","special_id":"0","bak_id":"0","info":"0","hits":"67","pages":"1","comments":"0","posttime":"2017-01-07 08:15:00","list":"1483748100","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"C\/C<\/A> STL<\/A> \u591a\u7ef4<\/A> vector<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.31","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"C\/C++STL\u591a\u7ef4\u6570\u7ec4(vector(vector() ))","lastview":"1490182719","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}