Denso RC5 Spécifications Page 188

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 692
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 187
8-6
8.6 Declaration Statement
Declare definitions in a declaration statement before using variables,
constants, functions and so on that are required to have designated names or
types in a program.
The following 3 broad types of statements fall under the declaration statement.
Type declaration : declares the type of a variable on
: constant.
Function/program declaration : declares a function or program.
User coordinate system declaration : declares a user coordinate system.
8.6.1 Type Declaration
[ 1 ] Type Declaration Character (Postposition)
Fixed postpositions can be used to declare a variable type. Postpositions are
as follows.
Type Declaration Characters (Postpositions)
Type Postposition Example
Integer type postposition % A%
Single precision real type
postposition
!A!
Double precision real type
postposition
#A#
Character string type
postposition
$A$
Note: The variable type in a program is handled as the type first
declared. Even if a different type postposition from the
declaration is used in the middle of a program, the type is not
identified.
A, A%, A!, A#, and A$ are recognized as the same variables
and are registered as the type first used. Therefore, an error
will occur if a different type postposition from the one first
used is used.
Vue de la page 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 691 692

Commentaires sur ces manuels

Pas de commentaire