Nested for loop & vector issue

This is a discussion on Nested for loop & vector issue within the C++ Programming forums, part of the General Programming Boards category; Hi,
I can't seem to understand why this is not working as expected. The output from the two "couts" are ...