#include<iostream.h>
void main()
{int a[]={1,2,3,0,3},b[]={3,2,1,0,3};
int len,i,j,temp,flag1=0,flag2=0;
if(sizeof(a)!=sizeof(b)){
cout<<"两数组元素个数不相等!"<<endl;
}
else{
len=sizeof(a)/4;
//cout<<len<<endl;
for(i=0;i<len;i++){
for(j=i;j<len;j++){
if(a[i]==b[j]){
temp=b[j];b[j]=b[i];b[i]=temp;
flag1=1;
break;}
}
if(flag1) {flag1=0;continue;}
else {flag2=1;break;}
}
if(flag2) cout<<"两数组不相等!"<<endl;
else cout<<"两数组相等!"<<endl;
}
}