Hi there,
I am trying to write my own function that uses arrays to carry out the same function with different values. Before you ask everything is declared properly.
If you don't remember basic syntax stuff (e.g. how to pass arrays to functions), you can always take a look at your book or the tutorial of this site -> http://cplusplus.com/doc/tutorial/ If the problem is something this simple, you can most probably fix it on your own.