aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex04/ex04.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp01/ex04/ex04.cpp')
-rw-r--r--cpp01/ex04/ex04.cpp14
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;
}