摘要:
1.数组指针 (1)定义 int (*)[ ]数组指向二维 int 数组 (2)定义 int 指针指向二维数组的第一个元素 指针的写法较多,从我个人的尝试中选择几种写法分析。 代码1: #include<bits/stdc++.h> using namespace std; int* p[12]; 阅读全文
摘要:
1.数组定义及简单使用 1)分别定义一个 int 型一维数组和二维数组,并通过输出验证各种初始化方法; #include<bits/stdc++.h> using namespace std; #define ll long long const int INF = 0x3f3f3f3f,N=5; 阅读全文