Matrix Elements VB-800 Instrukcja Użytkownika Strona 139

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 138
A6.4 Objects 131
escape-sequence: one of
\" double quote (") \’ single quote ()
\0 null character \\ backslash (\)
\a or \g alert (bel) \b backspace
\f formfeed \n or \l newline
\r carriage return \t horizontal tab
\v vertical tab \e escape (ASCII 27)
\xhh hexadecimal number (hh)
\ooo decimal number
At least one and at most two hexadecimal digits must be given for the hexadecimal
escape sequence. A single quote need not be escaped.
A6.3.6 Constant expression
A constant-expression
4
is an expression which involves scalar constants and the fol-
lowing operators: +-*/.
An int-constant-expression is a constant expression which evaluates to an integer.
Constant expressions are evaluated when the code is compiled.
A6.4 Objects
A6.4.1 Types
Variables in OxGauss are implicitly typed, and can change type during their lifetime.
The life of a variable corresponds to the level of its declaration. Its scope is the section
of the program in which it can be seen. Scope and life do not have to coincide.
There are three basic types and four derived types. The integer type int is a signed
integer. The double precision floating point type is called double.Amatrix is a two-
dimensional array of doubles which can be manipulated as a whole. A string-type holds
a string, while an array-type is an array of references. A function is also recognized as
a type.
arithmetic-type: int, double, matrix
string-type: string
scalar-type: int, double
vector-type: string, matrix
derived-type: string-array, character-matrix
other-type: function
At the programming level, the following types are used in external declarations:
4
Where OxGauss allows constant-expressions, Gauss only allows constants.
Przeglądanie stron 138
1 2 ... 134 135 136 137 138 139 140 141 142 143 144 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag