This is a simple Address Book application built using C++. It allows you to add, display, delete, search, edit, and clear contacts. All operations are performed through a terminal interface.
- Add Contact: Store personal information such as name, gender, age, phone number, and address.
- View Contacts: Display all contacts stored in the address book.
- Delete Contact: Remove an individual contact from the address book.
- Search Contact: Look up contact details by name.
- Edit Contact: Modify existing contact details.
- Clear Contacts: Erase all contacts in one go.
- Exit: Safely exit the application when you're done.
- Clone this repository:
git clone https://github.com/yourusername/address-book-cli.git
- Navigate to the project directory:
cd address-book-cli - Compile the program (Ensure you have a C++ compiler like
g++):g++ address_book.cpp -o address_book
- Run the executable:
./address_book
After launching the program, youβll see a menu with options:
********************************
***** Address Book *****
********************************
***** 1. Add Contact *****
***** 2. Show Contacts *****
***** 3. Delete Contact *****
***** 4. Search Contact *****
***** 5. Edit Contact *****
***** 6. Clear Contacts *****
***** 0. Exit *****
********************************- 1. Add Contact: Enter the contact details when prompted. π
- 2. Show Contacts: View all contacts in the system. π
- 3. Delete Contact: Remove a contact by entering their name. β
- 4. Search Contact: Enter a name to find the corresponding contact. π
- 5. Edit Contact: Modify an existing contact's details. βοΈ
- 6. Clear Contacts: Wipe out the entire address book in one go. π₯
- 0. Exit: Quit the program and wave goodbye! π
- C++: Core programming language used to implement the application.
- g++: GNU C++ compiler for building the executable.
- CLI: Command Line Interface for user interaction.
- File Storage: Persist contacts between sessions by saving them to a file.
- Validation: Add stricter validation for user inputs.
- Sorting: Sort contacts alphabetically or by other criteria