ada
paket Ada.Text_IO
Sök…
Introduktion
Paketet Ada.Text_IO används för att lägga till text eller hämta text från filer eller konsol.
Put_Line
Skriver ut strängen med en ny linje.
with Ada.Text_IO;
procedure Put_Text is
use Ada.Text_IO;
S : String := "Hello";
begin
Put_Line ("Hello");
Put_Line (Standard_Output, "Hello");
Put_Line (Standard_Error, "Hello error");
Put_Line (S & " World");
end;
Resultat
Hello
Hello
Hello error
Hello World
Modified text is an extract of the original Stack Overflow Documentation
Licensierat under CC BY-SA 3.0
Inte anslutet till Stack Overflow