Advertisement
Guest User

Untitled

a guest
Mar 5th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.72 KB | None | 0 0
  1. procedure escrituraFichero(esComplejo : Boolean) is
  2.    begin
  3.    Put_Line("Escritura de fichero de salida");
  4.    Create(Archivo, Out_File, "data.txt");
  5.    Set_output(Archivo);
  6.    for k in 1..Max loop
  7.       if(comprobarEstabilidadCampo(ST2 => ST2(k)) = false) then
  8.          SC1(k) := 0.0;
  9.       else
  10.          SC1(k) := SC1Fijo;
  11.       end if;
  12.       if(comprobarEstabilidadModulo(ST2 => ST2(k)) = false) then
  13.          SC2(k) := 0.0;
  14.       else
  15.          SC2(k) := SC2Fijo;          
  16.       end if;
  17.       Put(ST1(k));
  18.       Put(ST2(k));
  19.       Put(ST3(k));
  20.       Put(ST4(k));
  21.       Put(SC1(k));
  22.       Put(SC2(k));
  23.       Put(SR1(k));
  24.       Put(SD1(k));
  25.       New_Line;
  26.    end loop;
  27.    close(Archivo);
  28. end escrituraFichero;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement