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; |
Partager