2021年12月4日

摘要: b为数组或容器,是被遍历的对象 for(auto &a:b),循环体中修改a,b中对应内容也会修改 for(auto a:b),循环体中修改a,b中内容不受影响 for(const auto &a:b),a不可修改,用于只读取b中内容 阅读全文
posted @ 2021-12-04 14:15 _rhythm 阅读(532) 评论(0) 推荐(0)