跳轉到內容

Ada 程式設計/屬性/'輸入

來自華夏公益教科書,自由的教科書

從流引數中讀取並返回一個值。

對於特定型別 T 的每個子型別 S

S'Input 表示具有以下規範的函式

function S'Input (Stream : not null access Ada.Streams.Root_Stream_Type'Class) return T

S'Input 從流中讀取並返回一個值,使用與對應 S'Output 所寫的任何邊界或判別式來確定要讀取多少。

SInput (Stream:access Ada.Streams.Root_Stream_TypeClass) return T
華夏公益教科書