A simple hotel management system in C.
This system performs the following operations:
• Loads Hotels and Reservations from a .csv file.
• Saves Hotels and Reservations to this file.
• Adds a Hotel.
• Searches and Displays a Hotel by id.
- Linear search.
- Binary search.
- Interpolation search.
• Displays Reservations by surname search.
Implementation in two differect ways (data structures):
• Arrays
• AVL trees
data.csv is an input file sample.
• Arrays:
gcc -g -Wall -Wextra -o main main.c functions.c
./main [filename].csv
• AVL trees
gcc -g -Wall -Wextra -o main main.c avl.c
./main [filename].csv