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,22 +1,40 @@
#ifndef CONTACT_CLASS_HPP
# define CONTACT_CLASS_HPP
#include <string>
# include <iostream>
# include <string>
class Contact {
public:
Contact();
~Contact();
std::string index;
std::string first;
std::string last;
std::string nick;
void add_index(std::string str);
void add_first(std::string str);
void add_last (std::string str);
void add_nick (std::string str);
void print_contact();
public:
Contact();
~Contact();
void add_first(std::string str);
void add_last (std::string str);
void add_nick (std::string str);
void add_num(std::string str);
void add_secret(std::string str);
void print_contact();
private:
std::string first;
std::string last;
std::string nick;
std::string num;
std::string secret;
};
#endif
/*
* create_contact (first ; last ; nick ; num ; secret)
* get_first
* get_last
* get_nick
* print_contact
*/