508 compliance has never looked this goodThis is my brain..... in part, at least.

Thursday, February 07, 2002


 
My Discrete teacher has to make everything so damn difficult. He assigned us this program…. Here’s what it’s supposed to do:

It’s supposed to compare two black and white pictures and make new pictures based on this comparison.

To do this, we can’t just look at every square in pictures and compare whether they are black and white, and draw the output based on that…. No. We have to copy the entire picture into a matrix… and then copy the second picture into a second matrix… and then compare them, saving the output into a third matrix… which makes things horribly more complicated than they have to be. Plus, we don’t know the size of the pictures… so everything has to be dynamic, which means that I have to use something that I was told programmers should never use…. Double Pointers *gasp*.

And of course, I can’t run this program in Windows… it has to be run in UNIX. And, although my program works perfectly in Windows… Every time I run it in UNIX it says:

Segmentation Fault (core dumped)

Which means, in laymen’s terms, it doesn’t work. It more than doesn’t work. It’s just plain broke. I emailed my teacher, and he said my code should work… but it doesn’t. It seg faults. Which sucks. A lot.

Add to this the fact that this program is worth at most 5% of my grade… and I’ve been working on it for three days… and it’s supposed to be "easy"… and it makes me I wonder why I’m about to pull an all-nighter (the first of the year, I might add).

I even called up my CS buddies to see if they could help… they all said, "That sucks, man… that really sucks." But were, of course, no help at all. So I shall spend most (if not all) of tonight in Butler Labs… sitting here with Josh, banging our heads against the wall…

I hate difficult teachers.
posted by Deedee 10:09 PM

Comments: Post a Comment