.


:




:

































 

 

 

 





 

-

Programming Taskbook -

, -

, . ,



8


. . . Programming Taskbook 4.6


 

 

, , -

, , ,

.

-,

, ,

, [F1] ?

( ,

PT4Demo -,

PT4Load).

/ -

, Programming Taskbook

4.6. - ( -

, - )

PT4Info,

4.6 Programming Taskbook.

 

 

 

:

procedure GetB(var A: boolean);

procedure GetN(var A: integer);

procedure GetR(var A: real);

procedure GetC(var A: char);

procedure GetS(var A: string);

procedure GetP(var A: PNode);

:

procedure PutB(A: boolean);

procedure PutN(A: integer);

procedure PutR(A: real);

procedure PutC(A: char);

procedure PutS(A: string);

procedure PutP(A: PNode);

 

PNode . Dymanic.

Pascal ABC

- Read

Write.



 

 

C++

 

:

void GetB(bool& a);

void GetN(int& a);

void GetD(double& a);

void GetC(char& a);

void GetS(char* a);

void GetS(string& a);

void GetP(TNode*& a);

:

void PutB(bool a);

void PutN(int a);

void PutD(double a);

void PutC(char a);

void PutS(char* a);

void PutS(string a);

void PutP(TNode* a);



 

- -

pt, . ,

GetN(a); GetD(b); GetS(s);

: pt >> a >> b >> s;

PNode . Dymanic.

 

 

Visual Basic

 

:

Public Sub GetB(ByRef A As Boolean)

Public Sub GetN(ByRef A As Integer)

Public Sub GetD(ByRef A As Double)

Public Sub GetS(ByRef A As String)

:

Public Sub PutB(ByVal A As Boolean)

Public Sub PutN(ByVal A As Integer)

Public Sub PutD(ByVal A As Double)

Public Sub PutS(ByVal A As String)



10


. . . Programming Taskbook 4.6

 

 

GetS PutS -


, - ( Visual Basic -

).

 

.NET (C# VB.NET)

 

(C#):

public static bool GetBool();

public static int GetInt();

public static double GetDouble();

public static char GetChar();

public static string GetString();

public static Node GetNode();

(VB.NET):

Public Shared Function GetBool() As Boolean

Public Shared Function GetInt() As Integer

Public Shared Function GetDouble() As Double

Public Shared Function GetChar() As Char

Public Shared Function GetString() As String

Public Shared Function GetNode() As Node

(C#):

public static void Put(params object[] a);

(VB.NET):

Public Shared Sub Put(ParamArray a() As Object)

 

 

- .NET

PT, -

, . PT

,

Solve , PT (, ,

- ).

Put . -

( ,

, ).

Node . Dymanic -

.NET.



,

 

 





:


: 2016-11-12; !; : 688 |


:

:

, ; , .
==> ...

1773 - | 1528 -


© 2015-2024 lektsii.org - -

: 0.015 .