就是如下的代码中,typedef那里怎么理解?完全理解不能啊!
// This little program shows how we can use a two-dimensioned array.
#include <iostream>
using namespace std;
int main()
{
int ia[3][4] = {
{1,2,3,4},
{5,6,7,8},
{9,10,11,12}
};
typedef int int_array[4]; // 这个怎么理解呢?
int_array *ip = ia;
for (; ip != ia + 3; ++ip)
{
for (int * q = *ip; q != *ip + 4; ++q)
cout << *q << '\t';
cout << endl;
}
getchar();
}
|