标签:new mono get com cpp href lang hit mon
int main() { vector<int> a; a.push_back(1); a.push_back(2); for (auto &i : a) // 加上引用是安全的写法 { i = 3; cout << i << endl; } for (auto i:a) { cout << i << endl; } }
标签:new mono get com cpp href lang hit mon
原文地址:https://www.cnblogs.com/hulian425/p/12355385.html