From 20af1a127b2dc306a13a4a9dc496dee024efb23b Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Thu, 20 Feb 2025 20:06:49 +0100 Subject: [PATCH] Udate the explanation --- .../roadmaps/cpp/content/101-setting-up/102-first-program.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/data/roadmaps/cpp/content/101-setting-up/102-first-program.md b/src/data/roadmaps/cpp/content/101-setting-up/102-first-program.md index 43da82775..3fb1bf59e 100644 --- a/src/data/roadmaps/cpp/content/101-setting-up/102-first-program.md +++ b/src/data/roadmaps/cpp/content/101-setting-up/102-first-program.md @@ -44,8 +44,7 @@ std::cout << "Hello, World!\n"; ``` - `std`: This is the namespace where C++ standard library entities (classes and functions) reside. It stands for "standard" and is an abbreviation for the Standard Template Library (STL). - `std::cout`: The standard "character output" stream that writes to the console -- `"Hello, World!"`: The string literal to print -- `'\n'`: The "end line" manipulator that inserts a newline character and flushes the output buffer +- `"Hello, World!\n"`: The string literal to print. Notice the newline character `\n` at the end. ## Return Statement