c ++: do not enter the loop correctly

advertisements

These two functions are part of my cpp file. The vector type is of class type (WordInText).

When my program gets into these loops it gets out of it within one loop.


I suspect you want:

iter != wordintext_vec.end()

Rather than:

iter < wordintext_vec.end()