Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C project

Name: Anonymous 2011-05-18 8:29

Soup /prog/!

So I have an assignment where I'm supposed to do:
1. Read the text from a txt file
2. Edit the text so, that after every word there should be only one space and that after every sentence there would be 2 spaces.
3. Print the results in the screen and into a new file

So I was thinking of putting the data from the file into a linked list, edit it as required and print it into a new file.

Any better ideas?

Name: Anonymous 2011-05-18 8:43

print as you read and parse sets of blank characters as one space, simpler version

Name: Anonymous 2011-05-18 10:29

Any better ideas?
Read SICP

Name: Anonymous 2011-05-18 13:27

>>2 correct solution
>>3 incorrect solution

Don't change these.
Name: Email:
Entire Thread Thread List