This is my first attempt at a car inventory management system written in C. During the development of this project, I focused on understanding and implementing key concepts such as:
- Structs: To model car inventory and sales data.
- File Persistence: Saving and loading data to maintain car inventory and sales records across the program's execution.
- Sorting and Searching: Implemented basic sorting algorithms and search functionality for managing the inventory.
The project allowed me to learn how to structure code, manage data using structs, and persist that data to files. It also helped me understand the importance of clean, maintainable code as I worked on refactoring and improving the design.
- Add new cars to the inventory
- Track car sales and update inventory
- View car inventory and search by various attributes like model, year, etc.
- Persist car data to a file
- C Programming Language: The project is written entirely in C, using basic file I/O, structs, and functions.
- Standard Library Functions: Used standard C libraries for sorting, input and output, and string manipulation.
In the future, I plan to refactor the code for better organization by splitting it into separate files and adding more documentation, including unit testing.
-
Compile the program:
gcc -o Car-program main.c -
Run the program:
./Car-program
next time i would like to really delve deep into c and learn allnthese concepts way more efficently and make something more user friendly.