I am writing a program that prompts the user for a string. This string will then have an extracted substing. I've written this code below but whenever I compile it It'll prompt the user for the string and then freeze up. I know my problem is with the way I am storing the initial string but can't find in my book how to do this. I'm new and yes this if for homework. I couldn't find help with this on any other postings. I just want to be pointed in the right way. Any help is appreciated. Thanks,