参考书目:C/C++规范设计简明教程,P172
//P172 测试一维数组指针
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
int main()
{
cout << "Hello World!\n";
int magic[3][3] = { {1, 2,3},{4, 5,6}, {7, 8,9} };
int(*pMagic)[3];
pMagic = magic;
cout << pMagic << endl; //显示头地址
cout << *pMagic << endl;
cout << *(*pMagic+3) << endl; //显示第4个元素
getchar();
}