In C ++, I have a phone book with many names, such as Sinatra, Frank, and I want the user to be able to enter any line length to scan the file for her. After a user enters a string of any desired length, how do I scan a whole string of "Sinatra, Frank" only for "Frank" or "Sinatra" or "atra" and see what names it belongs to?
source
share