Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
22Activity
0 of .
Results for:
No results containing your search query
P. 1
Didier Mailliet Cours Delphi

Didier Mailliet Cours Delphi

Ratings:

4.67

(12)
|Views: 2,195|Likes:
Published by api-3831627

More info:

Published by: api-3831627 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Delphi et KyliX : des descendants de Pascal
MIAGE 2\u00e8me ann\u00e9e
Delphi et Kilix
D. Mailliet
2
Delphi et KyliX : des descendants de Pascal
I. EDI : l\u2019environnement de d\u00e9veloppement int\u00e9gr\u00e9......................................................................................................................10
A.

La fen\u00eatre principale................................................................................................................................................................10 1. La barre de menus....................................................................................................................................................................10 2. La barre d\u2019outils.......................................................................................................................................................................10 3. La palette de composants........................................................................................................................................................10

B.
L\u2019\u00e9diteur de code......................................................................................................................................................................10
C.
Le concepteur de fiches (ou de \u00ab forms \u00bb)...........................................................................................................................11
D.
L\u2019inspecteur d\u2019objets...............................................................................................................................................................11
E.
L\u2019aide Delphi............................................................................................................................................................................11
II.
Pr\u00e9sentation g\u00e9n\u00e9rale...................................................................................................................................................................12
A.
Structure d\u2019un programme Pascal, Delphi ou Kylix..........................................................................................................12
B.
Utiliser des unit\u00e9s.....................................................................................................................................................................13
C.
Cr\u00e9er des unit\u00e9s........................................................................................................................................................................14
D.
Les projets.................................................................................................................................................................................14
E.
Fichiers d\u2019un projet..................................................................................................................................................................15
III.
\u00c9l\u00e9ments de syntaxe.....................................................................................................................................................................15
A.
Commentaires...........................................................................................................................................................................15
B.
Directive de compilation.........................................................................................................................................................16
C.
Identificateurs...........................................................................................................................................................................16
D.
Identificateurs qualifi\u00e9s...........................................................................................................................................................16
E.
Affectation.................................................................................................................................................................................17
F.
S\u00e9parateur d\u2019instruction..........................................................................................................................................................17
G.
D\u00e9claration de Types, de constante et de variables............................................................................................................17
IV.
Types et structure de donn\u00e9es simples......................................................................................................................................17
A.

Le type scalaire.........................................................................................................................................................................18 1. D\u00e9finition...................................................................................................................................................................................18 2. Routines ordinales....................................................................................................................................................................18 3. Priorit\u00e9 des op\u00e9rateurs.............................................................................................................................................................18 4. Le type bool\u00e9en........................................................................................................................................................................18

a) D\u00e9finition..............................................................................................................................................................................18
b)

Op\u00e9rateurs........................................................................................................................................................................18 c) Proc\u00e9dure et fonctions........................................................................................................................................................19 d)

Op\u00e9rateurs relationnels...................................................................................................................................................19
e) Exemples...............................................................................................................................................................................19

5. Le type entier............................................................................................................................................................................19 a) D\u00e9finition..............................................................................................................................................................................19 b)

Op\u00e9rateurs........................................................................................................................................................................20 c) Proc\u00e9dure et fonctions........................................................................................................................................................20 d)

Exemple............................................................................................................................................................................21

6. Le type caract\u00e8re......................................................................................................................................................................21 a) D\u00e9finition..............................................................................................................................................................................21 b)

Op\u00e9rateurs........................................................................................................................................................................21 c) Proc\u00e9dure et fonctions........................................................................................................................................................21 d)

Exemples..........................................................................................................................................................................21

7. Le type \u00e9num\u00e9r\u00e9.......................................................................................................................................................................21 a) D\u00e9finition..............................................................................................................................................................................21 b)

Exemples..........................................................................................................................................................................22

8. Le type intervalle......................................................................................................................................................................22 a) D\u00e9finition..............................................................................................................................................................................22 b)

Exemples..........................................................................................................................................................................22
B.

Le type r\u00e9el................................................................................................................................................................................22 1. D\u00e9finition...................................................................................................................................................................................22 2. Op\u00e9rateurs.................................................................................................................................................................................22 3. Routines arithm\u00e9tiques............................................................................................................................................................22 4. Routines de nombres al\u00e9atoires.............................................................................................................................................23

MIAGE 2\u00e8me ann\u00e9e
Delphi et Kilix
D. Mailliet
3
5. Exemples...................................................................................................................................................................................23
C.

Les types cha\u00eenes.....................................................................................................................................................................23 1. D\u00e9finition..................................................................................................................................................................................23 2. Routines de gestion des cha\u00eenes............................................................................................................................................23 3. Op\u00e9rateurs de cha\u00eene...............................................................................................................................................................24 4. Les cha\u00eenes courtes..................................................................................................................................................................24

a) D\u00e9finition..............................................................................................................................................................................24
b)
Exemples..........................................................................................................................................................................24

5. Les cha\u00eenes longues et \u00e9tendues............................................................................................................................................24 a) D\u00e9finition..............................................................................................................................................................................24 b)

Exemples..........................................................................................................................................................................24

6. Les cha\u00eenes AZT......................................................................................................................................................................25 a) D\u00e9finition..............................................................................................................................................................................25 b)

Op\u00e9rateurs........................................................................................................................................................................25 c) Proc\u00e9dure et fonctions........................................................................................................................................................25 d)

Exemples..........................................................................................................................................................................25
D.
Cha\u00eenes de format....................................................................................................................................................................25
E.

Le type pointeur.......................................................................................................................................................................27 1. D\u00e9finition..................................................................................................................................................................................27 2. Op\u00e9rateurs.................................................................................................................................................................................27 3. routines d'adresses et de pointeurs........................................................................................................................................28 4. Routines d'allocation dynamique..........................................................................................................................................28 5. Exemples...................................................................................................................................................................................28

F.
Autres pointeurs.......................................................................................................................................................................29
G.

Le type Variant.........................................................................................................................................................................29 1. D\u00e9finition..................................................................................................................................................................................29 2. Op\u00e9rateurs.................................................................................................................................................................................29 3. Routines de gestion des variants...........................................................................................................................................29

H.

Les types Ensemble.................................................................................................................................................................30 1. D\u00e9finition..................................................................................................................................................................................30 2. Op\u00e9rateurs.................................................................................................................................................................................30 3. Exemples...................................................................................................................................................................................30

I. Les tableaux..................................................................................................................................................................................30 1. D\u00e9finition..................................................................................................................................................................................30 2. Tableaux statiques...................................................................................................................................................................30

a) D\u00e9finition..............................................................................................................................................................................30
b)
Exemples de tableaux \u00e0 1 dimension...........................................................................................................................31
c) Exemples de tableaux \u00e0 plusieurs dimensions...............................................................................................................31

3. Tableaux dynamiques..............................................................................................................................................................31 a) D\u00e9finition..............................................................................................................................................................................31 b)

Fonctions et proc\u00e9dures.................................................................................................................................................31
c) Exemples..............................................................................................................................................................................31

J. Le type record...............................................................................................................................................................................32 1. D\u00e9finition..................................................................................................................................................................................32 2. Exemples...................................................................................................................................................................................33

K.
Enregistrements \u00e0 partie variable..........................................................................................................................................33
L.

Le type fichier..........................................................................................................................................................................34 1. D\u00e9finition..................................................................................................................................................................................34 2. routines d'entr\u00e9es/sorties.........................................................................................................................................................34 3. Routines de fichiers texte.......................................................................................................................................................34 4. Routines de gestion de fichiers..............................................................................................................................................34 5. Exemples...................................................................................................................................................................................35

M.

Les types proc\u00e9dure et fonction.............................................................................................................................................36 1. D\u00e9finition..................................................................................................................................................................................36 2. Exemple.....................................................................................................................................................................................36

N.

Autres routin es.........................................................................................................................................................................36 1. routines de gestionnaire de m\u00e9moire....................................................................................................................................36 2. routines diverses.......................................................................................................................................................................36 3. Informations au niveau de l'application. ..............................................................................................................................37 4. Routines de conversion de type.............................................................................................................................................37

Activity (22)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Miloudsat liked this
brunnehild liked this
quidamme liked this
ikhl75 liked this
tuni54114 liked this
rezgounakram liked this
Nassim Tazibt liked this
Moha Bouha liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->