|
ON4CGA > PASCAL 08.01.98 00:38l 67 Lines 1886 Bytes #999 (999) @ WW
BID : 3866-F1FBB
Read: DL7NFK DH7RW DG0OKW DG1NSE DF9NE GUEST
Subj: PASCAL BASICS (2)
Path: DB0MAK<DB0PV<DB0AAB<DB0ZKA<DB0LX<DB0CZ<DB0GE<LX0PAC<ON7RC<ON1BWP<
ON6AR<ON1CED<ON4KTK<F8KOT<F1NWC<F1HPZ<F1JUW
Sent: 980107/2207Z @:F1JUW.FNPP.FRA.EU #:31753 [Mericourt] FBB7.00 $:3866-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 : Fouquieres Les Lens.
Dpt : 62 Pas de Calais.
Locator : JO10LK.
First name: Raymond.
Read previous mail | Read next mail
| |