Giter Site home page Giter Site logo

basemax / contactlistmanagercli Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 28 KB

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

Makefile 3.00% C++ 97.00%
c cli contact contact-list contact-lists contact-management contact-management-system contacts-manager

contactlistmanagercli's Introduction

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

contactlistmanagercli's People

Contributors

basemax avatar maxianedison avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.