#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
int i,j;
int tmp;
int num1,num2;
int s[100] = {0};
int *p1 = &num1,*p2 = &num2;//p1指向num1,p2指向num2
int *p3 = s;//s是s数组的第一项的地址,p3指向s数组
scanf("%d %d",&num1,&num2);
tmp = *p1;//用指针交换num1 2
*p1 = *p2;
*p2 = tmp;
printf("%d %d\n",num1,num2);
for(i=0;i < 100;i++)
{
s[i] = i;
}
printf("%d",*(p3+num1));//输出第num1项数
int str[10][10];
int (*p4)[10] = str;//定义二位数组指针指向str数组首地址
printf("%d\n",*(*(p4+num1)+num2));//输出二维数组第num1行num2列项数
return 0;
}