Bonjour,
Je voudrai afficher un caractère d'un string mais je vois pas comment faire.
J'ai :
Je voudrais donc affiché le 1er caractère de la chaîne str. Mais put ne m'affiche rien !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 with ada.text_io, ada.integer_text_io, use ada.text_io, ada.integer_text_io, procedure Main is str : String (0 .. 79); taille : Natural; begin get_line(str, taille ); skip_line; put(str(0)); new_line; end Main;
Merci.
Partager