BaseMax / ContactListManagerCLI

This is a command-line interface (CLI) program that allows the user to manage a contact list. It is written in C/C++ and stores the contact list on disk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contact List Manager CLI

This is a command-line interface (CLI) program that allows the user to manage a contact list. It is written in C/C++ and stores the contact list on disk.

Features

  • Add a new contact (name, email, phone number)
  • List all contacts
  • Search for a contact by name
  • Update an existing contact's information
  • Delete a contact
  • Save the contact list to disk
  • Load the contact list from disk on startup
  • Automatically save new contacts to disk

Requirements

  • C compiler (GCC or Clang recommended)
  • Make utility (to build the program)

Usage

To build the program, run the following command:

make

To run the program, use the following command:

./contact_manager

Here's an example of how the menu message could be displayed in the CLI program:

Contact List Manager

Select an option:
1. Add a new contact
2. List all contacts
3. Search for a contact
4. Update a contact
5. Delete a contact
6. Quit

The user can enter a number from 1 to 6 to select the desired operation.

The program will display a menu with the available operations. Follow the prompts to perform the desired operation.

The contact list is saved to a file called contacts.txt in the same directory as the program. When the program starts, it will load any existing contacts from this file.

Notes

  • Proper error handling is implemented for user input and file operations.
  • The code is well-organized and commented for readability.
  • New contacts are automatically saved to the contacts.txt file.
  • The contact list is saved in a simple comma-separated value (CSV) format.

Author

  • Maximilian Edison
  • Max Base

License

This program is licensed under the GPL-3.0 License.

Copyright 2023, Max Base

About

This is a command-line interface (CLI) program that allows the user to manage a contact list. It is written in C/C++ and stores the contact list on disk.

License:GNU General Public License v3.0


Languages

Language:C++ 97.0%Language:Makefile 3.0%