Skip to content

nahiyaarnikku/cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Contact Management System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages