I am trying to figure out how to name a singly linked list.
For example, if I am doing a quadratic polynomial and I have defined a structure such as this:
typedef struct poly_node *poly_pointer;
typedef struct poly_node
Then in the main part of the program. I want to ask the user what is the name for a certain polynomial which may look like this:
printf("Enter a name for this polynomial: ");
The question is how do I make the reference in naming that polynomial? I don't want to put the name in the struct because each node will want to have a name. The thing I am trying to do is that...I just want to make a reference to that named polynomial such that if I want to add two polynomial together and call that function to add:
where a and b are individual polynomial. how do I approach this problem???