I know how you guys detest people asking homework questions so I apologize in advance if I offend anyone! I just need someone to take a look at my project and point out what in my code would give me some random jumble of information for the average...
Anyone have any ideas???? I'd appreciate any pointers!!
NOTES:
1. Average() is a function as defined from Lines 5-17
2. You can declare, define, or call a function. You can even get the address to a function (what you did on your original Line 36). In other words, what you thought was a jumble was probably the address to your Average() function rather than the result of an Average() function call.
Make sure you understand how to do all that is in 2. clearly.
Feel free to ask questions - we just don't like people asking us to do their homework for them!
our replies clashed and I didn't notice that. yeah, i read the problem and from initial code i thought he wants the rand() function..damn I just saw... :(
Thanks guys; it is fixed now! I knew I was missing something beteen my function variable and my call in the main function but couldn't pinpoint it. Ahhh, if only I had your skills!
I knew I was missing something beteen my function variable and my call in the main function but couldn't pinpoint it.
That's the smart way to figure out what's wrong - you need to break down your program and isolate where you think your problem is.
Make sure you learn how to use a debugger in your class (ask your teacher about it if you do not have a chance to learn it) - it will save you countless hours of frustration and guessing around. GL.