Question Help Please...

I'm going to take a summer class on the intro to C++, but I wanted to get a head start so I bought a book & have been doing some of the examples on my own, but I need some help on a couple of the problems the book asks...

Function 1. In statistics, the mode of a set of values is the value that occurs most often or with the greatest frequency. Write a function that accepts the following:

1. An array of positive integers.

2. An integer that indicates the number of elements in the array.

The function should determine the mode of the array (which value in the array occurs most often). The function should return that value. If the array has no mode, the function should return a -1. Use pointers instead of subscript notation.

Function 2. Write a function that accepts the array of positive integers, and then reverses the array.

i'm really lost so if anyone can help me with these 2 then i'd really appreciate it
What exactly do you need help with? You'll need to know how to write functions, to start. How much coding have you done so far?
yeah i've done simple functions and stuff, i just don't know much about arrays
This site actually has a pretty good tutorial. If you want to know about arrays you can look here:
http://cplusplus.com/doc/tutorial/arrays/
Topic archived. No new replies allowed.