posted by eric on .
Create a new project Lab05e, and write a program that asks the user to enter a line. The program must find the one or more words between quotation marks (“”) characters and print them as follows:
Please enter a line: She “does not” go to the “school” very often, but “she has to!”
You may find h elp under these tutorials:
Enter the line as a string, and scan character by character for quotation marks, '"'. Count the number of quotes you found. If the number is odd, echo the following characters, if the number of quotations is even, stop echoing.
In the example given:
She “does not” go to the “school” very often, but “she has to!”
you would start echoing after the first " and echo does not, and stop echoing until "school" when the same actions repeat.
Post your trial code if you have problems.