Last active
September 14, 2024 06:37
-
-
Save rugbyprof/a6d2a0c507d621fe783cce41222601fd to your computer and use it in GitHub Desktop.
list traversal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void LinkedList::print() { | |
Node *travel = front; // Line 1 | |
while (travel) { // Line 2 | |
// do stuff here | |
travel = travel->next; // Line 3 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment