meilleure orga des fichiers et class contact app ok
This commit is contained in:
@@ -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
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user