i'm stuck on how to compare all the elements of two arrays to see if they're equal. the code I've written only seems to check the first element of the both arrays and doesn't actually check all the elements....for example if the first array ("simons_array") equals 7 7 7 and the second array (users_array) equals 7 8 8 it still says they're equal...tried rewriting this a million ways and googled/youtubed the subject still can't find anything that makes sense to me...would really appreciate any help or suggestions
There are other ways also without using the pre-made compare algorithms or the two basic methods I showed above such as using pointers or iterators.
*edit also a lot of people don't like multiple return statements because they think it can be confusing just like some people don't like break statements. A way to go around this is to define a variable then assign it the true or false value then return that variable.