From a1ff408e007a8b9312bfdffb39ec594eb96cf13c Mon Sep 17 00:00:00 2001 From: TrollzorFTW Date: Fri, 19 Jul 2019 23:55:32 +0300 Subject: [PATCH] Outputing an "auto" variable (#31263) --- guide/english/cplusplus/the-auto-feature/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/english/cplusplus/the-auto-feature/index.md b/guide/english/cplusplus/the-auto-feature/index.md index 44bc904ace..e6ba2ed021 100644 --- a/guide/english/cplusplus/the-auto-feature/index.md +++ b/guide/english/cplusplus/the-auto-feature/index.md @@ -28,6 +28,10 @@ std::pair> last_employee = employees.back(); // with auto, you just have to write: auto last_employee = employees.back(); +//if you want to output the "last_employee" variable you have to do it with a pointer +cout<