Posts Tagged ‘c++’

Huffman Code

// June 24th, 2009 // No Comments » // open source, programming

So this is another little assignment that we had just before final exams. It’s about Huffman code and its application in file compression. We were supposed to write a program to read a file, determine total bits for that file, then use Huffman code to compress it and calculate the total bits after the compression. TheĀ file should only contain alphanumeric characters [A-Za-z0-9], and maybe spaces, new lines and dots and commas.
(more…)

Animal guessing game

// June 6th, 2009 // 2 Comments » // open source, programming

Little assignment I had a while ago, about binary tree. The prof let us choose our own language so I thought of C++, just because I studied it 4,5 years back and didn’t freakin remember anything about it.

The problem: Animal guessing game
What I did, the source: in C++

Thought of using classes but was short of time heh!