Basic Pascal Tutorial/Chapter 5/Subranges/fr
Sent here from Subranges/fr.
English · Français · Български · 中文(中国) · 日本語
Tutoriel de Pascal Objet : Types de données / Intervalles
Un type intervalle est défini dans les termes d'un autre type de donnée ordinal. La spécification de type est :
lowest_value .. highest_valueoù lowest_value < highest_value et les deux valeurs sont dans la plage de l'autre type de donnée ordinal.
Par exemple, vous voulez déclarer les jours de la semaine aussi bien que les jours travaillés :
type
DaysOfWeek = (Sunday, Monday, Tuesday, Wednesday,
Thursday, Friday, Saturday);
DaysOfWorkWeek = Monday..Friday;Vous pouvez aussi utiliser les intervalles pour les types natifs tel que les char et integer.
From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 5/Subranges/fr", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 5 people, 2014–2022
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| E-ric | Created page | |
| E-ric | ||
| FTurtle | ||
| Frigory | Refonte | |
| Trev | Fixed syntax highlighting (minor) | |
| Trev | Text replacement - "Object Pascal Tutorial" to "Basic Pascal Tutorial" (minor) | |
| Kai Burghardt | Kai Burghardt moved page Subranges/fr to Basic Pascal Tutorial/Chapter 5/Subranges/fr: tidy up main name space: create subpage hierarchy for basic Pascal tutorial [cf. [[Special: PermaLink/149778#Clut... (minor) | |
| Kai Burghardt | bypass redirects [cf. discussion] | |
| Kai Burghardt | bypass language bar/categorization template redirect [cf. discussion] (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
