Support My Work
Hey there! 👋
I'm an independent creator working on various projects, from open-source software to content creation. If you find my work useful or enjoy what I do, consider supporting me with a virtual coffee! Your support helps keep me fueled and motivated to continue creating and sharing. It's a small gesture that goes a long way in making a difference.
Thank you for being a part of my journey! ☕
This simple library management system is designed in C and includes basic functionalities for managing books and user accounts. Below is a brief overview of the key features and structures in the program:
struct Book
{
char title[100];
char author[100];
char genre[50];
char subGenre[50];
int height;
char publisher[100];
};
struct User
{
char username[50];
char password[50];
char preferences[100];
char borrowedBook[100];
struct User *nextUser;
};
Displays a list of all books in the library.
Adds a new user to the user database.
Authenticates a user based on provided username and password.
Allows a user to check out a book from the library.
- Reads book data from a CSV file and populates the library.
- Initializes a user database with predefined users, including an admin account.
- Simulates user login with authentication.
- Displays user information, reading preferences, and borrowed books.
- Allows users to check out books if they haven't borrowed any yet.
- Provides admin options to view the list of books or see who borrowed which book.
- Compile the program.
- Run the executable.
- Enter your username and password to simulate user login.
- Follow the prompts to interact with the system.
Feel free to customize the code according to your specific requirements. Enjoy managing your library!
Note: Ensure that the "library.csv" file is present or created in the same directory as the executable for proper functionality.