aboutsummaryrefslogtreecommitdiff
path: root/cpp00/ex01/Contact.cpp
blob: 6e8764c882a264c666e9369c5be306d0640eb841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <string>
#include "Contact.hpp"

Contact::Contact(std::string name)
{
	this->name = name;
}

std::string
Contact::phone_str()
{
	std::string s;
	for (int i = 0; i < 10; i++)
		s.push_back(phone[i] - '0');
	return s;
}