September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
17
Task/Classes/Component-Pascal/classes-2.component
Normal file
17
Task/Classes/Component-Pascal/classes-2.component
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
MODULE DrivePoint;
|
||||
IMPORT
|
||||
Point,
|
||||
StdLog;
|
||||
|
||||
PROCEDURE Do*;
|
||||
VAR
|
||||
p,q: Point.Instance;
|
||||
BEGIN
|
||||
p := Point.New(1,2);
|
||||
q := Point.New(2,1);
|
||||
StdLog.String(p.ToString() + " + " + q.ToString() + " = " + p.Add(q).ToString());StdLog.Ln;
|
||||
StdLog.String("p.x:> ");StdLog.Int(p.x);StdLog.Ln;
|
||||
StdLog.String("p.y:> ");StdLog.Int(p.y);StdLog.Ln
|
||||
END Do;
|
||||
|
||||
END DrivePoint.
|
||||
Loading…
Add table
Add a link
Reference in a new issue