meilleure orga des fichiers et class contact app ok

This commit is contained in:
Hugo LAMY
2022-02-03 15:17:50 +01:00
parent 9d45496f8b
commit aa77271631
11 changed files with 79 additions and 50 deletions

View File

@@ -1,10 +1,34 @@
#include "PhoneBook.class.cpp"
#include <iostream>
#include "PhoneBook.class.hpp"
#include "Contact.class.hpp"
# include <iostream>
# include <string>
int main() {
PhoneBook yellow;
yellow.contact.add_first("hugo");
yellow.contact.print_contact();
Contact new_contact;
new_contact.add_first("hugo");
new_contact.add_last("lamy");
new_contact.add_nick("hugonosaure");
new_contact.add_num("0123456789");
new_contact.add_secret("je suis un dino");
new_contact.print_contact();
return 0;
}
/*
* class PhoneBook :
* add_contact (->Contact.create_contact)
* search_contact
* print_phonebook (->Contact.get_index/name/last/nick)
* index_print (Contact.print_contact)
* exit
*
* class Contact :
* create_contact (first ; last ; nick ; num ; secret)
* get_first
* get_last
* get_nick
* print_contact
*
*/