I'm working on a project for school, and I need to overload the [] operator to allow the nodes of a linked list to act as subscripts, as in an array. This is what I have implemented:
Wow, thanks. I didn't realize i forgot the <T>. That's sad considering I remembered it on other functions I made. And yes, I'm just going to use an int since a template doesn't really make sense.