how to do this code without string

Apr 9, 2017 at 12:13pm
Create a file ​sentence.txt​ which has data like given below.
sentence.txt He was in pressure but nobody helped him.

You are required to write a program which reads the sentence as whole and outputs the words of sentence whose ​second last character is ​vowel and writes it into a file wordVowel.txt​. The output should be like
wordVowel.txt:
was
in
but
helped
him
Apr 9, 2017 at 12:35pm
on this and your other thread: http://www.cplusplus.com/forum/beginner/212853/#msg994275
you keep asking for non-string based solutions though not using strings is not mentioned as a requirement in your assignment, or at least in as much of it as you have posted above. So why no strings?
Apr 9, 2017 at 12:36pm
because we haven't done strings yet
Apr 9, 2017 at 12:41pm
because we haven't done strings yet

there's got to be a better reason than that, perhaps someone will help you. good luck
Topic archived. No new replies allowed.