Hi all! I'm new to here .. so please excuse me if my questions are unclear etc :)
I am trying to store polynomials in C++ using linked lists.
My class is called Polynomial and i've created a structure that represents each term in the polynomial (a node in the linked list). A node is called 'term'.
However, I am having a problem visualizing how to link all these 'term's together to create a 'Polynomial' that i can actually call.
I can add terms, delete terms etc from a single list, but when it comes to dealing with a Polynomial object passed in to some function, I have problems breaking it into its 'term's.
In essence, its the constructor and actually building the list to call it a Polynomial object that is giving be problems.
I thought of making the Polynomial object point to the head of the list?
Does that make sense? Any suggestions from anyone :)?
~Thanks a lot.
-dicapryl