Hi, as usual I am pretty new to C++ and just started fighting with vectors.
And I stumbled upon a problem I cannot figure out.
Whenever I try to do some operation with vector.size() the IDE (visual express 2010/08, dev++ ) throw in a towel:
An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in cenzorship vectors.exe
Additional information: External component has thrown an exception.
Any ideas how to solve this one?
PS: I did some searching for solution but coudn't find, feel free to abuse me for it...
Because when there are say, five elements in the vector, they have the indexes 0, 1, 2, 3 and 4.
size() returns 5 and if you use <= the loop body will be also executed when i reaches 5. But words[5] doesn't exist.