classes/vector noob question.

Cant figure out why my " a.review() " are not working/outputting anything just zero?
any help would be appreciated. and i know my code isn't the best :)


SOLVED.
Last edited on
Maybe you should write to the member variables.
1
2
3
4
5
6
Review::Review(string n, double r, string t) {

	n = ReviewerName;
	r = rating;
	t = Text;
}

Making your input parameters const would have diagnosed this problem.

Having a naming convention for member variables, like mReviewerName
would have made the statement n = mReviewerName stick out like a sore thumb.



Topic archived. No new replies allowed.