From Wikibooks, open books for an open world
Jump to navigation Jump to search

This is a template designed for the book ROOT. It should be used to format output during an interactive ROOT session.

Usage[edit source]

Syntax[edit source]

Parameter Default Value Mandatory Description
#1   no Output to be displayed.

Comments[edit source]

  • Do not add a blank line before this template or you'll get ugly space.
  • To format multiple lines of code, only use one template and break lines with <br />.
  • Well, this is annoying: You can't use the = sign, curly braces or a pipe inside the parameter. Encode them as HTML, eg. &#61; for the equality sign. Please see [1] for a list of HTML replacements.

Example[edit source]

In this example, we display a "hello world" program. Note that I'm also making use of the Template:ROOT/RootInputLine.

Code[edit source]

{{ROOT/RootInputLine|0|cout << "hello world" << endl;  }}
{{ROOT/RootOutput|hello world  }}

Result[edit source]

root [0] cout << "hello world" << endl;
hello world

See Also[edit source]