1.指针
1 #include <iostream>
2 #include <string>
3 #include <vector>
4 using namespace std;
5 int main()
6 {
7 int arr[] = {
1, 2, 3, 4};
8 int a = 3;
9 int *x = arr;
10 int *p = &a;
11 cout << p << '\t' << &a <<endl;
12 cout << *p << '\t' << a <<endl;
13 *p = 5;
14 cout <