• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[article Preformatted
2[quickbook 1.6]
3]
4
5[section Preformatted]
6
7Here's the ubiquitous /Hello World/ program in C++.
8
9[pre
10#include <iostream>
11
12int main()
13{
14    std::cout << "Hello, World!" << std::endl;
15    return 0;
16}
17]
18
19The code should appear as a single block of code in a monospaced font and with
20no syntax highlighting. The fifth and sixth lines should appear indented to the
21right, aligning under `main`, on line 3.
22
23Here's a one line function definitition: [pre void something(); ].
24
25And some indented code:
26
27[pre
28    void go()
29    {
30    }
31]
32
33[endsect]
34