Contents
Syntax
The syntax for
type definitions type(definitions) :=(type, definitions)
@type definitions @type(definitions) @:=(type, definitions)
Note: If you are using the first syntax for variable definitions and want to have more code and/or text following on the same line then simply end the definition with '
Description
The
Note: If you need to define thousands of variables then
Note:
@:=(int, x=10)!
Options
The following options are available for
option | description |
---|---|
definition of a |
|
do not register variable with |
|
define variable at layer |
|
add member functions for variables | |
do not add member functions for variables | |
definition of a |
|
add |
|
parameters specify values for std::vector definition | |
option | description |
f++ example
Examples of
int a=10, b=12; double d=3.14 string(str="hello, world!") :=(ofstream, ofs("output.txt")) write(ofs, a, " ", b, " ", d, endl) write(ofs, str, endl) ofs.close()
n++ example
Examples of
@int a=10, b=12; @double d=3.14 @string(str="hello, world!") @:=(ofstream, ofs("output.txt")) @write(ofs, a, " ", b, " ", d, endl) @write(ofs, str, endl) @ofs.close()