Skip to content

Jesulayomy/phonebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phonebook

A program for adding, deleting, editing, storing and viewing data in an ordered manner

Compilation and Running

Compilation

$- ./compile.sh

If an error occurs or your architecture is not supported, please compile with:

$- gcc phone.c -o book
  • Other compilers like clang, llvm, or make should work as well

Running

Run the book executeable generated from compilation

$- ./book

Expected Output: options


Operations

Adding Entries

You can add a new entry to the phonebook by entering 1 at the options prompt.
Information needed are:

  • Surname (no spaces allowed in a name)
  • Firstname
  • Phone (with country code preceeding)

addingentries

Modifying Entries

Information can be edited by entering 2 at the options prompt.
It replaces the whole line and each information must be re-entered.
Note that the first entry is counted as entry 1.

modifyingentries

Deleting Entries

An entry can be deleted by providing its line/entry number after supplying option 3 at the options prompt.

deleteentry

View Entries

Entering option 4 at the prompt displays the current phonebook file if it exists.

viewentry

Releases

No releases published

Packages

No packages published