#include<iostream>
#include<cstdlib>
using namespace std;
extern void write();
int main() {
int *p = NULL;
const unsigned array_size = 3;
int ia[array_size] = {0, 1, 2};
for (int *pbegin = ia, *pend = ia + array_size; pbegin != pend; ++pbegin) {
cout << "値:" << *pbegin << endl;
}
return 0;
}
C++学习代码--pointer
最新推荐文章于 2024-05-22 00:03:53 发布