#include <iostream>
#include <array>
using namespace std;
int main()
{
array<string, 3> sarr = { "hello", "world", "river" };
for (array<string, 3>::size_type ix = 0; ix != sarr.size(); ++ix)
cout << sarr[ix] << " ";
cout << endl;
return 0;
}
library array demo
最新推荐文章于 2023-03-07 18:00:26 发布