The purpose of this program is to find the abbreviations in a text and to print the meaning of the abbreviations. I cant get it to print out the right abbreviations. It just prints out all of them.
The find() function returns a number which represents the position within the string of the item being searched for. If the item isn't found, the return value is the largest number possible - which in this context means string::npos.