Question: #ifndef CONTACTBOOK _ H #define CONTACTBOOK _ H #include #include #include class Contact { public: Contact ( const std::string& name, const std::string& phone ) :

#ifndef CONTACTBOOK_H
#define CONTACTBOOK_H
#include
#include
#include
class Contact {
public:
Contact(const std::string& name, const std::string& phone)
: name(name), phone(phone){}
std::string GetName() const { return name; }
std::string GetPhone() const { return phone; }
private:
std::string name;
std::string phone;
};
class ContactBook {
public:
ContactBook() : curr_size(0){}
void Add(const Contact& contact);
void Display() const;
Contact* Find(const std::string& searchTerm);
private:
static const int MAX_CONTACTS =100;
Contact* contacts[MAX_CONTACTS];
int curr_size;
};
#endif

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!