#include<iostream> using namespace std; int main() { int Array[100]; int *p; p = new int[100]; for(int i = 0;i < 100;i ++) { Array[i] = 100 - i; p[i] = i + 1; } //Array = p; //“=”: 无法从“int *”转换为“int [100]” for(int i = 0;i < 100;i ++) { cout<<p[i]<<" "; } cout<<endl; p = Array; for(int i = 0;i < 100;i ++) { cout<<p[i]<<" "; } return 0; }