hi, I have to write a program for a player in bridge.
I have to:
1. recieve 13 cards, and enters them into a linked list
2. print them in the order I got them
3. orginize them in a sort order:
-> the order in the seried: clubs-> diamonds-> hearts-> spades
-> each series has to b sorted also
4. print it out
The main parts of the program are: main & hand.
from 'main' I call to:
* read - gets the details of the player's cards
* write - prints the lists out
* hand - which cares to orginize the cards in a sort order
from 'hand' I call to:
* copy - which copies each card to the suitable series
* sort - which sorts each series
* merge - which merges all the series to one list
I did it, but have some problem in it...
enclosed the program.
plsssss, help me!!! :-(
I have to:
1. recieve 13 cards, and enters them into a linked list
2. print them in the order I got them
3. orginize them in a sort order:
-> the order in the seried: clubs-> diamonds-> hearts-> spades
-> each series has to b sorted also
4. print it out
The main parts of the program are: main & hand.
from 'main' I call to:
* read - gets the details of the player's cards
* write - prints the lists out
* hand - which cares to orginize the cards in a sort order
from 'hand' I call to:
* copy - which copies each card to the suitable series
* sort - which sorts each series
* merge - which merges all the series to one list
I did it, but have some problem in it...
enclosed the program.
plsssss, help me!!! :-(