FerrisYu

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年1月5日

摘要: 基于范围的 for 循环 C++11 引入了基于范围的迭代写法,我们拥有了能够写出像 Python 一样简洁的循环语句: int array[] = { 1,2,3,4,5 };for (auto &x : array){std::cout arr(5, 100);for (auto &i : arr) {std::cout << i << ... 阅读全文
posted @ 2018-01-05 23:49 FerrisYu 阅读(459) 评论(0) 推荐(0) 编辑

摘要: -A1 -S -w -m -U -p -Y -xC200 --convert-tabs --indent-namespaces --indent=spaces=4 阅读全文
posted @ 2018-01-05 20:45 FerrisYu 阅读(1078) 评论(0) 推荐(0) 编辑