#include <iostream>
using namespace std;
int main()
{
int arr[] = {1, 2, 3, 4};
int *pbeg = begin(arr);
int *pend = end(arr);
while (pbeg != pend) {
cout << *pbeg++ << " ";
}
cout << endl;
return 0;
}
begin() & end() function demo
最新推荐文章于 2022-05-27 17:06:01 发布