Sunday, April 27, 2008

Mary's Lamb

This java program's name is "Mary's Lamb".
Mary is a worker who needs to know everyday's weather before she goes to work.
Lamb is weather information.

Mary's Lamb retrieves weather information from a web service site and display on its panel.
This is a simple program,but I think this kinda of program is useful for our daily life..
At least good for Mary.

Saturday, April 12, 2008

GUI for VS

This is the ugly interface of the voting system.


One student pointed out that the there is a rectangle on the button after clicking, which leaves a hint of previous vote. It is a good point, I think we could recovery this by putting a image on the button. I believe many other solutions are there. May add more methods later.


Sunday, April 6, 2008

Linked List + Dynamic Array = Linear Hashing

Recently, regarding to an assignment.

I built a linear hashing program in C++ which takes a serial of numbers,the bucket size and the initial size of the array.And It will put all numbers into the proper bucket based on linear hashing algorithm.

I had a good time while building this program, because I had a chance to practise how to use Linked List and Dynamic Array properly. and I found out something needed to be noticed and becareful with these two structure. because in C++, they are all implemented by point. so I always have to take care of that , and delete them after using.

It is a good program though, because I save a lot of time when next I need to do linear hashing calculation.hehehe...

I will upload this program soon after I submit it.

PS:9th , April: This is the prototype of inserting one record of linear hasing algorithm: