Contents
Syntax
The syntax for
write{option}(ostream, params)
@write{option}(ostream, params)
Description
The
Options
The following options are available for
option | description |
---|---|
call follows with a block of text to write/print | |
do not parse block of text with |
|
parse block with |
|
parse block with |
|
option | description |
f++ example
Examples of
- write(console, "hello, world!", endl)
- write{b}(console)
- {
- First line
- Second line
- Indented Line
- Last line
- }
- :=(string, s = "hello, world!")
- :=(ofstream, ofs("output.txt"))
- write(ofs, s, endl)
- ofs.close()
n++ example
Examples of
- @write(console, "hello, world!", endl)
- @write{b}(console)
- {
- First line
- Second line
- Indented Line
- Last line
- }
- @:=(string, s = "hello, world!")
- @:=(ofstream, ofs("output.txt"))
- @write(ofs, s, endl)
- @ofs.close()