前幾天在看轉學考題目
看到一題如下
#include <iostream>
using namespace std;
void main()
{
double *pdata;
double data[3][5] = {{1,3,4,5,10}, {7,8,9,10,11}, {2,12,6,15,14}};
pdata = data[1];
cout << data[2][4] << endl;
cout << pdata[3] << endl;
cout << *(data+1)[1]+3<< endl;
cout << pdata