Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   I have a question about linked list (http://www.go4expert.com/forums/i-question-linked-list-t8030/)

tzahi 29Dec2007 17:53

I have a question about linked list
 
Hello,
I need to write a code in C that make linked list
my professor gave us a three struct
one of them is :

typedef struct classNode
{
struct classNode *next;
struct genusNode *down;
char name[NAME_LENGTH];
double diversity;
}classNode;

I start to write the program and i dont know how to write a function that make the linked list of this struct
1) i dont know what i need to send to the function
2) the user need to enter the name and the diversity in the function and after that i dont know what to do with those Parameter (name and diversity) !!!

if someone can help me how to write this function i thank him a lot

P.S

struct classNode *next pointer to the next struct classNode
struct genusNode *down; pointer to struct genusNode

bye,


All times are GMT +5.5. The time now is 20:31.