1 / 6

Enregistrements Avril 2012

TP. Enregistrements Avril 2012. Un enregistrement permet de regrouper des éléments ayant des types différents au sein d’une même structure de données ( chose qui n’est pas possible avec un tableau ). Exemple:. Un Article est caractérisé par : Un nom Un prix unitaire. with et do begin

Download Presentation

Enregistrements Avril 2012

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TP Enregistrements Avril 2012

  2. Un enregistrement permet de regrouper des éléments ayant des types différents au sein d’une même structure de données (chose qui n’est pas possible avec un tableau)

  3. Exemple: Un Article est caractérisé par: • Un nom • Un prix unitaire

  4. with et do begin read (nom); read (prenom); Read(spec); Read(num); Read(moy); end; with et do begin write(nom); write(prenom); write(spec); write(num); write(moy); end; readkey; end. Program tp; uses crt; Type student= record Nom, prenom, spec: string[20]; num: integer; Moy: real; end; var et : student; Begin clrscr;

  5. Exercice 1- Créer un enregistrement pour un étudiant comprenant: • Nom • Prénom • Numéro d’étudiant • Spécialité • Moyenne

  6. 2 - Lire les informations d’un étudiant 3- Afficher ces informations

More Related