Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 2/Output/fr

Sent here from Output/fr.

Deutsch · English · Français · Български · Русский · 中文(中国) · 日本語

Tutoriel de Pascal Objet : Entrée/sortie / Sortie

Pour l'écriture de données à l'écran, il y a deux instructions, dont une que vous avez déjà vue dans le dernier exercice :

pascal
write (Argument_List);
writeln (Argument_List);

L'instruction writeln passe à la ligne à la fin de son exécution.

Vous pouvez mettre des chaînes de caractères dans la liste des arguments, soit des constantes ou des valeurs littérales. Si vous voulez afficher une apostrophe dans une chaîne, il faut la doubler. L'affichage de deux apostrophes consécutives exige alors d'en utiliser quatre.

pascal
write('C''est un exemple');

Cet emploi de séquence spéciale pour faire référence à un caractère spécial est appelé échappement et vous permet de faire référence à n'importe quel caractère même s'il est absent du clavier.


From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/Output/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.

Revision 1, last changed by WikiArchive .

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.

WhenWhoWhat changed
E-ricCreated page
E-ric (minor)
FTurtle
FrigoryRefonte
TrevFixed syntax highlighting (minor)
TrevText replacement - "Object Pascal Tutorial" to "Basic Pascal Tutorial" (minor)
Kai BurghardtKai Burghardt moved page Output/fr to Basic Pascal Tutorial/Chapter 2/Output/fr: tidy up main name space: create subpage hierarchy for basic Pascal tutorial [cf. [[Special: PermaLink/149778#Cluttering... (minor)
Kai Burghardtbypass redirects [cf. discussion]
Kai Burghardtbypass 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.