摘要: 最近写for循环,发现以前用过的方法都忘记了,这里整理下几种方法,欢迎大佬补充: 1、 for(itnt n =1;n<5;n++) { } 2、 for (auto it = list.begin(); it != list.end(); ++it) { } 3、 for each(auto it 阅读全文
posted @ 2019-07-18 17:07 HappyCoder_1 阅读(5189) 评论(0) 推荐(0) 编辑