Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 822 Bytes

File metadata and controls

30 lines (24 loc) · 822 Bytes

Bubble Sort Visualizer 📈

A bubble sort visualizer created by C++ and SFML.

Follow Steps

  1. Compiling
g++ -I<Destination of SFML>\include -c ./src/sortingvisual.cpp -o sortingvisual.o
  1. 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)
  1. Running the Code
.\sortingvisual.exe

Requirements

SFML

Usage

Space Bar: Start the Algorithm
Q : Quit (Close window)

Demo

SortingVisual-gif