A simple C++ app for managing phone contacts with persistent storage.
- Add, remove, and find contacts
- Display all entries
- Sort entries alphabetically
- Save data to file automatically
- C++ compiler (C++14 support)
- CMake (3.30+)
cmake --build cmake-build-debug --target projektcpp
The application uses command-line arguments to perform various operations.
./cmake-build-debug/projektcpp add [name] [phone]
E.g.:
./cmake-build-debug/projektcpp add John 123456789
./cmake-build-debug/projektcpp remove [name]
E.g.:
./cmake-build-debug/projektcpp remove JohnPork
./cmake-build-debug/projektcpp display
./cmake-build-debug/projektcpp find [name]
E.g.:
./cmake-build-debug/projektcpp find JohnPork
./cmake-build-debug/projektcpp sort
main.cpp: Main appinclude/PhoneDirectory.h: Defining directory classsrc/PhoneDirectory.cpp: Implementation of the Directory class
This app uses a custom made namespace PhoneBook that implements following C++ features:
- Custom type definitions using
typedef - Custom Namespaces for organisation
- CMD arg. processing
- Custom functions
- Containers and algorithms