Skip to content

Simple C++ gui app for sorting flights according to given criteria

License

Notifications You must be signed in to change notification settings

rajko-z/sorting-flights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sorting-flights

This project is school assignment for intro to C++ course based on this book from profesor Stroustrup. The project is done in visual studio with fltk library for gui.

Two modes

Run main.cpp

Command line arguments

You have to specify this parametars in this order:

  • inputFileName (contains flights you want to sort)
  • outputFileName (return sorted flights with additional information)
  • algorithm ('s' for selectionSort and 'm' for mergeSort)
  • criterium:
    1. 'd' - destination,
    2. 't' -departure time,
    3. 'fn' - flight number,
    4. 'gn' - gate number
  • reverse (0 for increasing sort, and 1 for decreasing)

GUI

If there is no command line arguments, the program will open this window to get the data

Visualization

If inputed arguments are valid, visualization will start. You can track positions of each element through iterations. For example, here is example for selecetion sort algorithm:


and corresponding input and output files after sorting

About

Simple C++ gui app for sorting flights according to given criteria

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published