you know i gave it some though, and realized that im only going to be using ints, so i might as well just ditch the generics. It works fine now.
Thank you for your help regardless. :)
Type: Posts; User: clydefrog
you know i gave it some though, and realized that im only going to be using ints, so i might as well just ditch the generics. It works fine now.
Thank you for your help regardless. :)
no it doesnt have to be generic, i just though it would be easier. You suggest i change the node to just work with ints?
oh okay, i see. So then how can i go about comparing 2 objects?
I need to figure out which one is the largest.
Hi,
I'm making a linked list implementation of a polynomial. My node, is a generic type with 2 elements; Coefficients and Powers. However, now i need to compare 2 nodes to see which has the...