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

reading file objects

Name: Anonymous 2011-07-12 13:02

I have some quick questions that maybe you could all help me out with.

So, I'm coding his program that needs to read a text file, and write a text file that includes a list of all the unique words that are present in the input text file and displays some word statistics, which include: shortest word, longest word, word length average, and standard deviation.
The program will read a maximum of 50 valid lines from the input file. A valid line is one that contains at least one word. Each line contains a maximum of 50 words, and the maximum length of each word is 20 characters.

My trouble is reading the text into an array without duplicates (or even at all), I'm not sure how to go about doing that, or whether or not it should be multidimensional. It was suggested to maybe do an array such as array[50][50][21] but I was not positive why they chose 3-dimensions.

Any help is greatly appreciated, I can show you examples of inputs and outputs if it would help.

Name: Anonymous 2011-07-12 13:57

>>8
So now, you want the OP to ditch C in favor of a language that is bloated with objects? Nice job. You're below average.

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