Well the following program should be change each function for min / max and average I re-write it up to 10 time and isn't works.... I want a tip since my brain stops!!! :P DON"T post the full program answer just give me some details more in one function for example on min and I would let you know.....
Please be aware that there are max & min -functions in C++ standard library. They are part of STL algorithms and you can use these functions after you have included this header file:
Prefer C++ standard library. Algorithms found there are made by professionals and are well optimized, meaning that they are fast for instance. Creating your average function is OK, though.