Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

📇 Contact Management System (C++)

A console-based Contact Management System built with C++ that allows users to store, search, update, and delete contact information. All contacts are saved in a file so the data persists even after the program is closed.

Description

The Contact Management System is a simple yet practical C++ application designed to help users manage personal or professional contacts efficiently.

Each contact contains the following information:

  • Name
  • Phone Number
  • Email Address
  • Home Address

The program stores all contacts in a text file (contacts.txt), allowing users to retrieve their saved contacts whenever they run the program again.

This project demonstrates key programming concepts such as:

  • Object-Oriented Programming (OOP)
  • File Handling
  • Dynamic Data Storage using Vectors
  • String Searching
  • Menu-Driven Applications

Features

Add new contacts View all saved contacts Search contacts by name or phone number Edit existing contacts Delete contacts Automatic file saving Persistent storage using a text file

Technologies Used

  • C++
  • Standard Template Library (STL)
  • Vectors
  • File Handling (ifstream, ofstream)
  • Object-Oriented Programming

Project Structure

id="proj1" Contact-Management-System/ │ ├── main.cpp ├── contacts.txt └── README.md

File Explanation

  • main.cpp → Contains the main application logic
  • contacts.txt → Stores saved contacts
  • README.md → Project documentation

How to Run

Compile the program

id="compile1" g++ main.cpp -o contacts_app

Run the program

id="run1" ./contacts_app

Example Program Menu

id="menu1" === CONTACT MANAGEMENT SYSTEM ===

  1. Add Contact
  2. View All Contacts
  3. Search Contact
  4. Edit Contact
  5. Delete Contact
  6. Exit Choose option:

Example Usage

Adding a Contact

id="example1" Enter Name: John Doe Enter Phone: 0551234567 Enter Email: john@example.com Enter Address: Accra, Ghana

Contact added successfully.

Searching for a Contact

id="example2" Enter name or phone to search: John Name: John Doe Phone: 0551234567 Email: john@example.com Address: Accra, Ghana

Concepts Practiced

This project demonstrates:

  • Classes and Objects
  • File input/output operations
  • Vector data structures
  • Search algorithms
  • Menu-driven program design
  • String manipulation

Possible Improvements

Future improvements could include:

  • Sort contacts alphabetically
  • Add contact profile pictures
  • Export contacts to CSV
  • Import contacts from files
  • Add password protection
  • Build a graphical user interface (GUI)

👨‍💻 Author

Amenyo Richard

Computer Science Student UI/UX Designer | Front-End Developer | Software Developer

About

A console-based Contact Management System built with C++ that allows users to store, search, update, and delete contact information. All contacts are saved in a file so the data persists even after the program is closed.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages