I have a question about a question
I'm not looking for anyone to do this question for me, but I was wondering if I could get some clarification on what you think this question is asking:
"Write a program to determine if a given substring exists within a larger string. Both inputs should be entered through console."
My take - The user enters a string, then the user enters another string. Write a program to see if the second string fits as part of the first string.
eg. entry 1 - Peter piper picked a peck of pickled peppers
entry 2 - Ice Hockey
Write a program to determine that Ice Hockey is not a substring of entry 1.
does this make sense or am I way off? Any other interpretations? Thanks guys.
Re: I have a question about a question