Hello all,
i am trying to implement a cirlcular data structure using pointers. I have defined a class called node and then declared a vector of type node. In the node i want a pointer to point to the next node, so for the last node the pointer should point to the first node to maintain a circular struture, however i am having difficulty in working out how to do this. Can anyone give me any ideas?
thanks for your time
jim
i am trying to implement a cirlcular data structure using pointers. I have defined a class called node and then declared a vector of type node. In the node i want a pointer to point to the next node, so for the last node the pointer should point to the first node to maintain a circular struture, however i am having difficulty in working out how to do this. Can anyone give me any ideas?
thanks for your time
jim