Bonjour,
En modifiant un exemple du cours 1 de Daniel Feneuille pour la Lecture et écriture de variables de type ENTIER (p78) j'ai une erreur de compilation.
voici le code:
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
19
20 with Ada.Text_IO, Ada.Integer_Text_IO,Ada.Strings.Unbounded, machine, client; use Ada.Text_IO, Ada.Integer_Text_IO,Ada.Strings.Unbounded, machine, client; procedure clientServ is procedure GET(ENTIER : out Integer) is REPONSE : Unbounded_String; LONG : NATURAL; begin loop begin REPONSE := Get_Line; => E R R E U R ENTIER := Integer'VALUE(To_String(REPONSE)); exit; exception when others => PUT_LINE("Saisie non valable recommencez"); end; end loop; end GET; ... end clientServ;ca veut dire qu'il ne trouve pas Ada.Strings.Unbounded ? J'ai pourtant tout telecharger sur GNAT GPL Editionexpected private type "Ada.Strings.Unbounded.Unbounded_String"
found type "Standard.String"
Est ce normal qu'il n'y soit pas ?
Partager