- #1
NDiggity
- 54
- 0
Homework Statement
We are given a structure for a magician. It contains how many different types of tricks they did. We need to write a function that calculates the total number of points they received. So puling a rabbit gets a certain amount of points etc. If they hurt any audience members, they receive zero points.
Then we write a function that takes an array of Magicians and finds which magician received the most points, using the function we previously created. Then in the body, we initialize an array of 10 Magicians, then call the second function to find the Magician who received the most points, and the we need to print out their data.
The Attempt at a Solution
http://cpp.tastethepaste.org/2013
Here is my attempt. What happens is that everytime, it returns the Magician with index zero. Please help!