just need a little help wit comparing two int arrays and return the value as bool.
help:
#include<iostream>
#include<iomanip>
using namespace std;
using std::setw;
bool compare(int[], int[]);
int main(){
const int correctarraysize=5;
const int pupilarraysize=5;
int resultarraysize=5;
int pupilarray[pupilarraysize ];
int correctarray[correctarraysize]={1,2,3,4,1};
bool resultarray=0;
cout<<"\n\nEnter pupil's results:"<<endl;
for(int k=0;k<pupilarraysize;k++)
cin>>pupilarray[k];
cout<<"*************************\a**************************\a**********"<<endl;
cout<<"\nPupil's choice:"<<setw(26)<<"Answare:"
<<setw(20)<<"Results are"<<endl;
for(int j=0;j<pupilarraysize;j++)
cout<<setw(14)<<pupilarray[j]<<setw(26)<<correctarray[j]
<<setw(20)<<resultarray<<endl;
cout<<"*************************\a**************************\a***********"<<endl;
return 0;
}
bool compare(int c[], int p[]){
bool resultarray=0;
for(int i=1;i<25;i++)
if( c= p)
bool resultarray=true;
else
bool resultarray=false;
return resultarray ;
}