Giter Club home page Giter Club logo

cms's Introduction

Project Name

Contact Management System (CMS)

Description

This C++ program implements a simple Contact Management System (CMS) that allows users to add, display, search, modify, and delete contacts. It stores contact information (ID, name, and phone number) in a text file (contacts_db.txt).

Features

  • Add new contacts with unique IDs.
  • Display a list of all stored contacts.
  • Search for a contact by ID.
  • Modify an existing contact's name and phone number.
  • Delete a contact from the database.

Getting Started

Prerequisites:

  • A C++ compiler (e.g., GCC, Clang)
  • A text editor or IDE (e.g., Visual Studio Code, Code::Blocks)

Clone the Repository:

git clone https://github.com/Tanvidubey/cms.git

Compile and Run:

Navigate to the project directory: cd contact-management-system

Compile the code (replace g++ with your compiler if necessary):

g++ main.cpp -o cms

Run the program:

./cms

Usage

The program presents a menu-driven interface. Select the desired option to manage your contacts:

Add Contact: Enter a unique ID, name, and valid 10-digit phone number (no spaces or hyphens). Display Contacts: View a list of all stored contacts. Search Contact: Enter an ID to search for a specific contact. Modify Contact: Enter the ID of the contact you want to edit, then update the name and phone number. Delete Contact: Enter the ID of the contact you want to remove. Exit (0): Terminate the program.

Built With

C++ programming language

License

Consider including a license file (e.g., MIT License) to specify how others can use and distribute your code. You can find license templates online.

Contributing

If you'd like to contribute to this project, feel free to fork the repository, make changes, and submit a pull request.

Additional Notes

Error handling could be improved to provide more informative messages in case of invalid user input or file operations. Consider adding functionality for sorting and filtering contacts.

Input/Output

Main menu of the contact management system:

image

Adding Contacts:

image

Displaying Contacts:

image

Search Contacts:

image

Delete Contacts:

image

Modify Contacts:

image

Exit:

image

cms's People

Contributors

tanvidubey avatar

Watchers

 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.