I am trying to figure out two questions. How do I find the size of the array. I used a site and they showed something like this.
int myarray[5];
int main()
{
cout<<myarray.size()<<endl;
return 0;
}
I know there is a another way but I know you can you size or I think its called length, can anyone help?
I am also trying to use two arrays and find the unique number in them so I did:
int myarray1[5]={2, 3, 4, 5, 6};
int myarray2[3]={2, 3, 4};
int main()
{
for (int i=0; 0<size.array1; i++){
for (int j=0; 0<size.array2; j++){
if array[i]!=array[j]{
<<cout i;
}
}
}
}
What do you guys think?