Skip to content

dmatavel/phonebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phonebook

Name

phonebook - a crap phonebook software.

Synopsis

phonebook - the program will display its options.

Description

phonebook records a short list of contacts and some basic info about then. After execution, the program displays its options, they must be inserted by the user in a uppercase or lowercase string format: 1) add: add a new contact. A maximum of 8 contacts can be added; if a ninth contact is added, the oldest is replaced by the most recent; 2) search: displays a list with basic information about saved contacts. You can view more about a specific contact by entering its index; 3) exit: quit the program. All saved contacts are lost.

Download

You can download the source code here or click the "Code" button at the upper-right corner of this repository, selecting "Download Zip".

Alternatively, you can clone this repository in your machine. Simple copy and paste or write the following command in your terminal:

cd ~/Downloads/ && git clone https://github.com/dmatavel/phonebook.git

It assumes that you have Git installed and a Downloads folder in your Home directory. If you face any error, check this requirements.

Compilation and execution

  1. Skip this step if you have gcc installed.

Assuming that you are using Ubuntu 22.04 or 20.04, update your system executing in your terminal:

sudo apt update

followed by

sudo apt upgrade

Install gcc with:

sudo apt install build-essential
  1. If you downloaded the zip file, extract it and enter the phonebook-main folder. With a right click on your file browser, select the option Open in Terminal or something like that.

If you've cloned the repository, simple go inside the program's directory. Copy and paste or write in your terminal:

make phonebook

An executable named phonebook will be created. After that, run the program with:

./phonebook

Bugs and contribution

Report bugs sending an email for matavelidanilo@gmail.com or opening an issue on the project's GitHub repository. Pull requests with fixes, features or any other upgrades are highly welcome.

Supported OSs

phonebook was developed and tested in Ubuntu 22.04 LTS.

42 cursus students

phonebook was first developed as the exercise "My Awesome PhoneBook" in 42 cursus. If you are a student at 42, please be aware that this project may have been modified in relation to the project that was submitted for evaluation during the course. You can take it as a reference for your studies, but not as a parameter for correcting your project.

License

This is a free work delivered for educational purposes during the main course at 42 <42.rio>.

Feel free to use it, change it, give advices, send me a pull request or just mail me if you want to share some thoughts.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.