diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-12-03 14:57:21 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-12-03 14:57:21 +0100 |
| commit | 7080f89bb2800917bfd9a560046a1ab7505f819e (patch) | |
| tree | a324f9789f5cf9c6cc273989aa46c9c515ccb67e /cpp00/ex01/Contact.cpp | |
| download | piscine_cpp-7080f89bb2800917bfd9a560046a1ab7505f819e.tar.gz piscine_cpp-7080f89bb2800917bfd9a560046a1ab7505f819e.tar.bz2 piscine_cpp-7080f89bb2800917bfd9a560046a1ab7505f819e.zip | |
Initial commit with cpp00 start
Diffstat (limited to 'cpp00/ex01/Contact.cpp')
| -rw-r--r-- | cpp00/ex01/Contact.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp00/ex01/Contact.cpp b/cpp00/ex01/Contact.cpp new file mode 100644 index 0000000..6e8764c --- /dev/null +++ b/cpp00/ex01/Contact.cpp @@ -0,0 +1,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; +} |
