Hi Ch1156, could you give us the whole code of interest, together with the output ?
Also, I would rather not use you stop method, it's a bit unsafe when asking for an int, to write a string.
Finally I don't quite understand the purpose of the last for loop, could you explain what you do there ?
"What you want to do is sum all the values in the vector"
How do i do that? I am really unsure how i add all the values from the vector. @aleonard the last for loop outputs all the elements, it was there during debugging when i was making sure all numbers where being assigned to an element, it will be removed when this function is complete.