Skip to content
Advertisement

Tag: increment

How to implement an increment method on pairs

I am working on a circular linked list and have implemented the following method to increment the elements of the list by a given value. This method works fine with lists of doubles; however, now I am trying to use it on a list of pairs but I keep getting an error since the method is used for doubles. What

Advertisement