That is because myk45 gave you pseudocode instead of C++. If you do not know how to translate what myk45 wrote into C++, then you are probably in serious trouble, and you should consider dropping the course.
vasilevich commented: Helped me solve the whole problem with a very simple answer. +0
arkoenig 340 Practically a Master Poster
acer5542 commented: he helped me to solve my self without the answer +1
NicAx64 commented: good to know +2
Sodabread commented: Nice solution =) +1
Ancient Dragon commented: Very nice and efficient +33
arkoenig 340 Practically a Master Poster
mrnutty commented: Good points +5
arkoenig 340 Practically a Master Poster
vijayan121 commented: that was a lucid explanation. thanks. +6
Yiuca commented: I don't like giving broken code but it sometimes happens, thanks for correcting it. +2
mrnutty commented: Thank you, finally someone pointed out the obvious! +5
arkoenig 340 Practically a Master Poster
arkoenig 340 Practically a Master Poster
Lusiphur commented: Exactly!! +1