what would be the simplest way to convert int array to vector? and use it with if statement.
i.e.
int num1[4] = {2, 4, 1, 8};
int num2[4] = {2, 4, 6, 8};
if (testNUM(num1, num2, 4))
cout << "ERROR: num1 and num2 are reported to be the same.\n";
else
cout << "SUCCESS: num1 and num2 are correctly identified "
<< "as different.\n";
testNUM is declared as a function prototype (BOOL).
thanks,
testNUMnum1andnum2are both arrays, why would you need to convert them to vectors?