26 lines
384 B
C++
26 lines
384 B
C++
#include "phone_number.h"
|
|
|
|
#include <algorithm>
|
|
#include <ctype>
|
|
|
|
using namespace std;
|
|
|
|
phone_number::phone_number(const string &str)
|
|
{
|
|
static const string invalid_number = "0000000000";
|
|
}
|
|
|
|
string phone_number::number() const
|
|
{
|
|
return number_;
|
|
}
|
|
|
|
string phone_number::area_code() const
|
|
{
|
|
return area_code_;
|
|
}
|
|
|
|
phone_number::operator string() const
|
|
{
|
|
return number_;
|
|
}
|