Hello I'm having a problem figuring out a string method.
I have read about string::find and string::npos to figure out that npos is a static value that is returned when string::find doesn't find anything. My problem is that when string::find is used to search a string it misses out the first index of that string. how does comparing it to npos make it look at the first index of the string. below is an example of what I mean.