#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
最新推荐文章于 2023-02-12 21:07:03 发布