22 lines
408 B
C++
22 lines
408 B
C++
#include "Contact.hpp"
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
#include <iomanip>
|
|
|
|
class PhoneBook {
|
|
private:
|
|
Contact _contacts[8];
|
|
int _currentIndex;
|
|
int _totalContacts;
|
|
|
|
public:
|
|
PhoneBook();
|
|
~PhoneBook();
|
|
|
|
void addContact();
|
|
void searchContacts() const;
|
|
void displayContact(int index) const;
|
|
std::string truncateString(const std::string& str) const;
|
|
}; |