Thread
:
Help with a small problem in C++
View Single Post
bandora
2013-11-26 , 22:32
Posts: 1,338 | Thanked: 1,055 times | Joined on Oct 2009 @ California, USA / Jordan
#
9
Originally Posted by
pichlo
...
Thank you for the input! That's very helpful for future programs, but in this particular homework, I don't need more than 2 movies that's why I just did it this way..
Btw, I see what you mean about the average.. But if I am not asking for much could you give me a hint on how to do it? Like how do I get the program to count how many times I've entered a rating and divide by that number...
Should I do a for loop in the main function when I enter the ratings? But if I do how do I return it to the getAverage() constructor..? That's not even possible right?
Or do I change the void addRating(int num) constructor to a int addRating(int num) and return a value?
Hmm.. I am a bit confused not to mention my brain is fried lol.. Too many homework due at the same time! D:
__________________
FarahFa.com
Quote & Reply
|
bandora
View Public Profile
Send a private message to bandora
Find all posts by bandora