Academic Project
The "Library" project is an implementation of a library materials management system in C++. The program uses classes and inheritance to represent different types of materials, such as books and magazines, and allows you to perform operations such as viewing the content, displaying available content, and adding new content. The parent class is "Library", which contains a vector of pointers to objects of the base class "LibraryMaterial". Each library material object has attributes such as ID, acquisition date, availability, and title. The project shows how to structure and manipulate related objects and use polymorphism to treat different types of materials uniformly.
The system begins with a main menu, which serves as the central hub for navigating through the application. This main menu is designed to be user-friendly and intuitive, providing clear and concise options for the user to choose from.
The first option allows you to view the entire contents of the library. As observed in the previous image, we can see various important aspects of a book. This image is just one in a list. The program begins with the initial 10 books and magazines, but you have the ability to add and modify this collection. It's important to note that magazines have different characteristics than books.
The second option displays the available content in the same format. The third option allows you to add content. An interactive menu will guide you through the process of adding information step by step. For example, if you want to add a book or a magazine, the menu will prompt you for the respective characteristics of each, depending on your choice. Once you've added the item, you can view it when you display the available items or all items.
<iostream>
and <vector>
..h
) and implementation (.cpp
) files.Biblioteca
, Libro
, and Revista
.