Javatpoint Logo
Javatpoint Logo

Contact Management System in C

This C contact management system project was written in C programming language and is a console application. This system was built as a straightforward side project in the Code::Blocks IDE using the GCC compiler. The Contact Management System console software is a simple tool with no graphics.

Similar to how contact management works on mobile devices. You can add, view, edit, search and delete contacts in this project. A file is maintained for each record that was added or modified. A simple project for beginners to learn how to create a web project in C is Contact Management System in C. The entire source code of the C project will be made available to you, so you can quickly install it on your computer and start learning how to program in C.

The basis of a contact management system is the idea of creating personal or organizational records of contacts, adding this data and updating it. Here, users can add their contact information securely and quickly. The system makes it easy to keep records of each person. The entire project was developed using the "C" programming language and various variables and strings. Consumers will find this little project easy to use and understand. It is a simple terminal program created in C without using any visual elements.

About the System

  • Add new contacts by entering details such as name, phone, address and email.
  • Show all contacts: displays a list of information about each contact from the file where they are stored.
  • Contacts can be searched using their name and phone number.
  • Edit Contacts: When adding contacts, you can change the name, phone number, address and email.
  • Contacts are deleted by deleting them from the file.
  • Add new contacts by entering details such as name, phone, address and email.
  • Name each contact: includes each contact in the file along with their individual contact information.
  • Contacts can be searched using their name and phone number.
  • Edit Contacts: When adding contacts, you can change the name, phone number, address and email.
  • Contacts are deleted by deleting them from the file.

Program Breakdown

Created a structure for our contact list.

The driver code looks something like above code which will display the main menu of the contact management system in C having options to add a new contact, list all contacts, search for contacts, edit a contact, and delete a contact and exit.

If the user has selected the option 1 i.e. to add a contact then the above code will come in action.

The above code is used to display the contact list entered by the user.

If the user wants to search for a contact then the above code will come in action.

If the user wants to edit an existing contact then the above code will come in action.

If the user wants to delete a contact from the list then the above code will come in action.

Program for Contact Management System in C

OUTPUT:

  **** Welcome to Contact Management System ****


                        MAIN MENU
                =====================
                [1] Add a new Contact
                [2] List all Contacts
                [3] Search for contact
                [4] Edit a Contact
                [5] Delete a Contact
                [0] Exit
                = = = = = = = = = = = = = = = = = 
                Enter the choice:
To exit enter blank space in the name input
Name (Use identical):Vikas
Phone:123456789
address:A block
email address:[email protected]

To exit enter blank space in the name input
Name (Use identical):Vivan
Phone:546738546
address:C Block
email address:[email protected]

To exit enter blank space in the name input
Name (Use identical):

..::Enter the Choice:

        [1] Main Menu           [0] Exit
1
      
    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
                        LIST OF CONTACTS
    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Name            Phone No            Address             E-mail ad.
   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
Name    : Vikas
Phone   : 123456789
Address : A block
Email   : [email protected]

Name    : Vivan
Phone   : 546738546
Address : C Block
Email   : [email protected]
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  [ V ] - ( 2 )
. . : : Search result for 'Vikas'
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
. . : : Name        : Vikas
. . : : Phone       : 123456789
. . : : Address     : A block
. . : : Email         : [email protected]

. . : : 1 match(s) found!
. . : : Try again?
        [1] Yes         [0] No
. . : : Search result for 'Vivan'
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
. . : : Name        : Vivan
. . : : Phone       : 546738546
. . : : Address     : C Block
. . : : Email       : [email protected]

. . : : 1 match(s) found!
. . : : Try again?

        [1] Yes         [0] No
. . : : DELETE A CONTACT
= = = = = = = = = = = = = = = = = =
. . : : Enter the name of contact to delete:Vikas






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA