diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-02 18:05:01 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-02 18:05:01 +0100 |
| commit | a5a197590e45494dc31f0d2fc8fb13194b3975c9 (patch) | |
| tree | f3350feda6ac6549a2b5fc4b45d9ca19f86345d0 /cpp01/ex04/ex04.cpp | |
| parent | 7d6a4c877de8048ec5fbea4a563b3d09c8976105 (diff) | |
| download | piscine_cpp-a5a197590e45494dc31f0d2fc8fb13194b3975c9.tar.gz piscine_cpp-a5a197590e45494dc31f0d2fc8fb13194b3975c9.tar.bz2 piscine_cpp-a5a197590e45494dc31f0d2fc8fb13194b3975c9.zip | |
cpp01 ex05 wip, ex06
Diffstat (limited to 'cpp01/ex04/ex04.cpp')
| -rw-r--r-- | cpp01/ex04/ex04.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cpp01/ex04/ex04.cpp b/cpp01/ex04/ex04.cpp index 865cb1a..9c34b51 100644 --- a/cpp01/ex04/ex04.cpp +++ b/cpp01/ex04/ex04.cpp @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ex04.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/02 12:43:03 by cacharle #+# #+# */ +/* Updated: 2020/02/02 12:43:06 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include <iostream> #include <string> @@ -7,7 +19,7 @@ int main() std::string &ref_s = s; std::string *ptr_s = &s; - std::cout << *ptr_s << std::endl; std::cout << ref_s << std::endl; + std::cout << *ptr_s << std::endl; return 0; } |
