35 lines
712 B
C++
35 lines
712 B
C++
#include "PhoneBook.class.hpp"
|
|
#include "Contact.class.hpp"
|
|
|
|
# include <iostream>
|
|
# include <string>
|
|
|
|
int main() {
|
|
|
|
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
|
|
*
|
|
*/
|