From 0f3240844dbd5a874e1565a988ef355ededab6a5 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 13 Apr 2020 10:33:05 +0200 Subject: Fixing cpp01 --- cpp01/ex04/ex04.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp01/ex04/ex04.cpp') diff --git a/cpp01/ex04/ex04.cpp b/cpp01/ex04/ex04.cpp index 9c34b51..7eed286 100644 --- a/cpp01/ex04/ex04.cpp +++ b/cpp01/ex04/ex04.cpp @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/02 12:43:03 by cacharle #+# #+# */ -/* Updated: 2020/02/02 12:43:06 by cacharle ### ########.fr */ +/* Updated: 2020/04/13 10:01:19 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,10 +16,10 @@ int main() { std::string s = "HI THIS IS BRAIN"; - std::string &ref_s = s; - std::string *ptr_s = &s; + std::string* ptr_s = &s; + std::string& ref_s = s; - std::cout << ref_s << std::endl; std::cout << *ptr_s << std::endl; + std::cout << ref_s << std::endl; return 0; } -- cgit