how to do this code without string

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
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?
because we haven't done strings yet
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.