Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,547 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,567 people online right now. Registration is fast and FREE... Join Now!




please i need to help

 
Reply to this topicStart new topic

please i need to help, please i need to help to make this programme

mbma2j
22 Nov, 2007 - 02:19 AM
Post #1

New D.I.C Head
*

Joined: 21 Nov, 2007
Posts: 1


My Contributions
You will create a hash table for sorting information about students according to this:
1. Each student is represented as a node with the following information: unique id, name, address, gender.
2. The hash table will be a class where the data is represented as an array of STACK [this stack is implemented as link list], where each stack stores the nodes that have the same array index.
3. The array is created dynamically in the constructor.
4. The hash function is calculated as follow:
Hash (student)= (first char of its name)+ (last char of its name) % size table;

The program must have:
1. Node declaration for the student
2. class declaration for a linked list STACK
3. Write the functions push and the destructor for STACK.
4. The class declaration of HashTable with this functions:
a. Default constructor with size 100
b. The defined user constructor HashTable (int size);
c. The destructor
d. The hash function HF(NODE*n);
e. The function AddStu(Node*n);
f. The function GetInfo(char*name); which print all information[size=2]

User is offlineProfile CardPM
+Quote Post

Bench
RE: Please I Need To Help
22 Nov, 2007 - 02:54 AM
Post #2

D.I.C Addict
Group Icon

Joined: 20 Aug, 2007
Posts: 684



Thanked: 24 times
Dream Kudos: 150
Expert In: C/C++

My Contributions
Read the forum rules and show some effort. Then come back when you have a question, rather than trying to be lazy and getting someone else to do your homework for you.

http://www.dreamincode.net/forums/showtopic13117.htm

This post has been edited by Bench: 22 Nov, 2007 - 02:56 AM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 09:33PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month