A bubble sort visualizer created by C++ and SFML.
- Compiling
g++ -I<Destination of SFML>\include -c ./src/sortingvisual.cpp -o sortingvisual.o
- Linking
g++ -L<Destination of SFML>\lib .\sortingvisual.o -o sortingvisual.exe -lmingw32 -lsfml-graphics -lsfml-window -lsfml-system -lsfml-main [-mwindows]
โ ๏ธ Adding a -mwindows command in the g++ -L command WILL NOT open a console. (NO COUT STATEMENTS WILL BE DISPLAYED IN THE TERMINAL)
- Running the Code
.\sortingvisual.exe
SFML
Space Bar: Start the Algorithm
Q : Quit (Close window)
