From a5a197590e45494dc31f0d2fc8fb13194b3975c9 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 2 Feb 2020 18:05:01 +0100 Subject: cpp01 ex05 wip, ex06 --- cpp01/ex04/ex04.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cpp01/ex04/ex04.cpp') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/02 12:43:03 by cacharle #+# #+# */ +/* Updated: 2020/02/02 12:43:06 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include @@ -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; } -- cgit