2020年9月27日
摘要: C++语言 范围for语句、 用于遍历一个序列、 int a[]{ 1,2,4,6,9 }; for (auto b : a)//将数值a的元素依次拷贝到b里面、 { cout << b << endl; } int a[]{ 1,2,4,6,9 }; for (auto &b : a)//添加&可 阅读全文
posted @ 2020-09-27 14:10 程耀辉 阅读(140) 评论(0) 推荐(0)