I am trying to do function which compare to arrays and returns true if they are same. Now the arrays are simple, it will be advanced later but I am stuck on the testEqual
function.
So here is code
int n = 5;
int array[5] = {5,10,3,4,7};
bubbleSort(pole,n);
int array2[5] = {3,4,5,7,10};
testEqual( array , array2 , "bubbleSort");
And here is testEqual
function I need to remake on arrays but I don't know how.
bool testEqual(int i1, int i2, const string testName) {
bool myresult = (i1 == i2);
return myresult;
}
The other functions like bubbleSort are fine I just need to remake testEqual
.