#include<iostream>
using namespace std;
int main(){
    const int size=5;
    int a1[size]={1,1,1,1,1},a2[size];
    //修改数组a1的值
    for(int i=0;i!=size;++i)
	a1[i]=i;
    //拷贝数组a1的值到数组a2
    for(int i=0;i!=size;++i)
	a2[i]=a1[i];
    //输出数组a1
    cout<<"The data of array a1: "<<endl;
    for(int i=0;i!=size;++i)
	cout<<a1[i]<<"   ";
    cout<<endl;
    //输出数组a2
    cout<<"The data of array a2: "<<endl;
    for(int i=0;i!=size;++i)
	cout<<a2[i]<<"   ";
    cout<<endl;
    return 0;
}
