#include <iostream>
using namespace std;
int main() {
int v[] = {0,1,2,3,4};
for(auto x : v)
{
cout << x << endl;
}
for(auto y : {10, 20, 30})
{
cout << y << endl;
}
return 0;
}
输出:
标签:std,20,int,C++,Loops,main From: https://www.cnblogs.com/symbolflowing/p/17249873.html0
1
2
3
4
10
20
30