README.rst
1.. zephyr:code-sample:: hello_cpp_world
2 :name: Hello C++ world
3
4 Print "Hello World" to the console in C++.
5
6Overview
7********
8
9A simple :ref:`C++ <language_cpp>` sample that can be used with many supported board and prints
10"Hello, C++ world!" to the console.
11
12Building and Running
13********************
14
15This configuration can be built and executed on QEMU as follows:
16
17.. zephyr-app-commands::
18 :zephyr-app: samples/cpp/hello_world
19 :host-os: unix
20 :board: qemu_riscv32
21 :goals: run
22 :compact:
23
24To build for another board, change "qemu_riscv32" above to that board's name.
25
26Sample Output
27=============
28
29.. code-block:: console
30
31 Hello C++, world! qemu_riscv32
32
33Exit QEMU by pressing :kbd:`CTRL+C`
34