iterator out of boundsyes I did. words.end() returns an iterator so it won't be correct to compare a dereferenced iterator...
iterator out of boundsthank you. I think you meant while( (it + 1) != words.end() && *it == *(it + 1)) right?
iterator out of boundsthis is the code I had before but lost some points due to the out of bounds error for the while loop...
hashing words read from a dictionary fileI am trying to create a hash function that calculates the hash for words that are read from a file. ...
reading words from a txt file into a string vectorok I found my mistake. I forgot the * for the inner while loop.
This user does not accept Private Messages