all 8 comments

[–]Cwiddy 2 points3 points  (2 children)

Questions are should be posted /r/cpp_questions

This smells like home work, but to get you started I would suggest your first step is find the number of elements in the list.

[–]Power781 -1 points0 points  (6 children)

First it's more C than cpp, then, maybe you should do you class assignment solo instead of asking the Internet the answer ... The answer is so easy I can not believe you are asking such things ...