|
ON4CGA > PASCAL 06.01.98 21:38l 72 Lines 2189 Bytes #999 (999) @ WW
BID : 3860-F1FBB
Read: DJ7YD DH7RW DG0OKW DG1NSE DF9NE DL1EC GUEST DJ9AO
Subj: PASCAL BASICS (2)
Path: DB0MAK<DB0HOT<DB0LPZ<DB0ERF<DB0MW<DB0SRS<DB0ZDF<DB0HOM<LX0PAC<ON7RC<
ON1BWP<ON6AR<ON1CED<ON4KTK<ON1KPU<F1HPZ<F1JUW
Sent: 980106/1747Z @:F1JUW.FNPP.FRA.EU #:31140 [Mericourt] FBB7.00 $:3860-F1FBB
From: ON4CGA@F1JUW.FNPP.FRA.EU
To : PASCAL@WW
Date/time : 6-jan-1998
Title : PASCAL BASICS (2)
Original title: LES BASES DU PASCAL (2)
From: F1FBB@F1JUW.FNPP.FRA.EU
PASCAL SEEN BY TURBO PASCAL
-2- THE DIFFERENT TYPES.
Declaring a variable is to attribute a symbolic name to a memory place.
We also have to indicate its TYPE. The type of a variable determines
the values it can have, the operations which can be performed upon it
and its memory restrictions. The TYPE DECLARATION specifies the
identifier of the chosen type.
DECLARATION OF A TYPE ---> identifier = TYPE ;
THE SIMPLE TYPES:
The simple types define groups of ordinal values.
simple type -> scalar type
-> real type
An identifier of the REAL type is one of the following standard
identifiers:
- REAL
- SINGLE (simple)
- DOUBLE
- EXTENDED
- COMP (composite).
THE SCALAR TYPES:
These types are sub-sets of the simple types class.
All simple types other than reals are scalar types.
The possible values of a scalar type form an ordinal row.
Except the integer type, the first value always is of zero range.
Turbo Pascal handles 7 predefined scalar types:
- INTEGER
- SHORTINT (short integer)
- LONGINT (long integer)
- BYTE
- WORD
- BOOLEAN
The user can also define two other types:
- ENUMERATED
- SUBRANGE (interval-type)
END OF PART 2
Translated by and reactions to: on4cga@on4ktk.wvl.bel.eu
The author: F1FBB
AX25 : F1FBB @ F1JUW.FNPP.FRA.EU
Tel : (Frankrijk) 03.21.49.85.33
QTH : Fouquiers Les Lens.
Dpt : 62 Pas de Calais.
Locator : JO10LK.
First name: Raymond.
====================================================
(c'est aussi possible que quelques mots ne sont pas trŠs bien
traduis‚, Raymond, mais je pense que ‡a ne donne pas beaucoup
de problŠmes pour les autres OM hi)
73 de Peter (& Packo, le chien) on4cga @ on4ktk.wvl.bel.eu
Read previous mail | Read next mail
| |