How rachmantor/linknode-and-bubble-sort-2 works
This is a small C++ command-line sorting demo backed by a custom singly linked list and bubble-sort implementations. The principal workflow prompts for integers and a sort mode, builds a list, optionally sorts it ascending or descending, then prints its values; other modes print the insertion order. The library also provides array-based bubble sort, though the shown CLI does not invoke it. Relationships shown are supported by the excerpts; no additional integrations are indicated.
Main entry points: main.cpp Input and orchestration · Bsort.cpp List bubble sort · LinkNode.cpp Linked list
Components 6
Command-line app
- Input and orchestration
main.cpp - List display
main.cpp
Sorting library
- Linked list
LIB/LinkNode/LinkNode.cpp - List bubble sort
LIB/Bsort/Bsort.cpp - Array bubble sort
LIB/Bsort/Bsort.cpp
Other components
- User
Connections 6
- User → Input and orchestration: enters values
main.cpp - User → Input and orchestration: chooses mode
main.cpp - Input and orchestration → Linked list: inserts and retrieves
main.cpp - Input and orchestration → List bubble sort: sorts list
main.cpp - Input and orchestration → List display: prints list
main.cpp - List bubble sort → Linked list: swaps values
LIB/Bsort/Bsort.cpp