c++ Programming Glossary: secprev
Swapping Nodes on a single linked list http://stackoverflow.com/questions/1535988/swapping-nodes-on-a-single-linked-list call head call first call second call firstPrev NULL call secPrev NULL call current head set previous for first while current.. for second while current next second current current next secPrev current current second next set firstPrev next to second firstPrev.. set firstPrev next to second firstPrev next second set secPrev next to first secPrev next first set second next first next..
|