Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Compound-data-type/OxygenBasic/compound-data-type.basic
Normal file
21
Task/Compound-data-type/OxygenBasic/compound-data-type.basic
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'SHORT FORM
|
||||
type point float x,y
|
||||
|
||||
'FULL FORM
|
||||
type point
|
||||
float x
|
||||
float y
|
||||
end type
|
||||
|
||||
point p
|
||||
|
||||
'WITH DEFAULT VALUES
|
||||
type point
|
||||
float x = 1.0
|
||||
float y = 1.0
|
||||
end type
|
||||
|
||||
point p = {} 'assigns the set of default values
|
||||
|
||||
|
||||
print p.x " " p.y
|
||||
Loading…
Add table
Add a link
Reference in a new issue