#include using namespace std; int main(){ int a[1001] = {},n,m; cout<<"请输入数据数:"; cin>>n; cout<<"输入:"< for(int i = 0;i < n;i++){ cin>>a[i]; } int *p = a; cout<<"请输入查找的下标:"; cin>>m; cout< cout<<*(p + m - 1)< return 0; }
京公网安备 11010502049817号