Create a character array that contains a sentence (with punctuation) that has at least 6 words (it can be longer). Store your sentence in the following format: char cPhrase[]={'I',' ','l','o','v','e',' ','e','a','t','i','n','g',' ', 'a','l','l',' ','k','i','n','d','s',' ','o','f',' ','d','e','s','s','e','r','t','s','.','\0'}; Then create a vector of strings where the strings are determined by a letter of the user's choosing. For example if the user chose the letter "e" your program should create and print the following strings: "I love", "e", "ating all kinds of de", "sse", "rts." Your program should work even if the character array changes. |
|
|
i <= e
becomes the stop point for the current output?
getline
or regax
so i don't understand those two...