This program, Database_in_C++, is a console-based application designed to manage a simple database of people. It offers functionality to add, display, save, load, search, and remove entries from the database. The program is written in C++ and utilizes basic file handling to save and load data.
- Add Person: Users can add new individuals to the database by providing their name, surname, age, and telephone number.
- Show All People: Displays a list of all individuals currently stored in the database along with their details.
- Save to File: Enables users to save the current state of the database to a file named
database.txt. - Load from File: Allows users to load previously saved data from the
database.txtfile into the database. - Search Database: Provides functionality to search for individuals in the database by their name.
- Remove Person: Enables users to remove an individual from the database based on their index.
- Compilation: Compile the program using any C++ compiler.
- Execution: Run the compiled executable. The program will display a menu with options for different operations.
- Operations: Select an option by entering the corresponding number. Follow the on-screen prompts to complete each operation.
- Saving and Loading: Use options 3 and 4 to save to and load from the
database.txtfile respectively. - Exiting: Press the
ESCkey to exit the program.
- The program can store information for up to 20 people.
- Ensure correct input while removing a person to avoid errors.
- Saved data is stored in the
database.txtfile in the same directory as the program.