08.22.06

Computer Science III – Post Lab #0

Posted in ALPHA, College, Computer Science, Programming, School at 2:52 pm by Nick

Time: 1 hour
Total: 1 hour
——————-

I already have homework. ::sigh:: Actually, I’m posting because I completed one of the tasks. It was an intersting refresher as I haven’t done much practical programming this crazy summer.

The first assignment was very much like the word counter we wrote back in CS I or CS II. We had to count the number of occurances of each printable character in a text file with a few other specifications relating to errors, output, etc.

Overall it was a decent way to spend an hour. I enjoy playing with STL maps, and they made this much easier than it would have been otherwise. McCormick seems to want comments on just about everything, so I think half of the code is either white space or comments.

I must admit I am a little wary posting this here. I don’t think any of the CS majors at UNI read my blog, but I don’t want to ruin their homework. Either way, if they copied it then they would all take some heavy hits on their grades.

Code -> http://www.nick-cash.com/download/cs3/postlab0/

3 Comments »

  1. Nick May said,

    September 7, 2006 at 12:17 am

    *wary, not weary.

    I am in the same boat—considering whether to post my code from class or not.

  2. Nick May said,

    September 7, 2006 at 9:49 am

    I really like all of the comments you have in the code, especially the stuff at the beginning of the file—it’s great to have a summery right there.

  3. Odis said,

    September 7, 2006 at 4:17 pm

    Some of it is rather excessive. I think commenting is great, but only where it should be. Not all loops require two lines of explanation like my professor wants, and other things that are simple or obvious he likes to comment about as well.

Leave a Comment