Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I have written a code according to the instructions given. I know i havent done it correctly so i will really appreciate if someone would help me with my code.
- If end-of-file in the input file, set the sentence to period only.
- Otherwise
a) Loop while not end-of-file and the last character of the current word is not one of the punctuation [period, exclamation point, or question mark]
· Input the next word from the input file.
· If sufficient characters within the sentence for next word, then append the next word to the sentence.
int sentence =0;
do
{
if ((sentence=='.') || (sentence'!') || (sentence'?'));
int x=strlen(size)-1;
}
while (sentence! ='\n')
I have written a code according to the instructions given. I know i havent done it correctly so i will really appreciate if someone would help me with my code.
- If end-of-file in the input file, set the sentence to period only.
- Otherwise
a) Loop while not end-of-file and the last character of the current word is not one of the punctuation [period, exclamation point, or question mark]
· Input the next word from the input file.
· If sufficient characters within the sentence for next word, then append the next word to the sentence.
int sentence =0;
do
{
if ((sentence=='.') || (sentence'!') || (sentence'?'));
int x=strlen(size)-1;
}
while (sentence! ='\n')