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