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