摘要: C++ vector遍历方法 //C语言版本 vector<int> vec {4, 8, 6, 2, 7}; for(unsigned int i=0; i<vec.size(); i++) cout << vec[i] <<endl; //迭代器版本 for(vector<int>::itera 阅读全文
posted @ 2020-04-29 21:05 crazyCodeFarmer 阅读(422) 评论(0) 推荐(0)