Abstract type: Difference between revisions

Abstract type in QBasic
No edit summary
(Abstract type in QBasic)
Line 333:
return
</lang>
 
=={{header|BASIC}}==
==={{header|BBC BASIC}}===
Line 417 ⟶ 418:
0
forty five</pre>
 
==={{header|QBasic}}===
{{works with|QBasic|1.1}}
{{works with|QuickBasic|4.5}}
{{trans|QB64}}
<lang qbasic>a = 15
TYPE c
d AS INTEGER
e AS STRING * 12
END TYPE
c.d = 25
 
TYPE f
g AS c
h AS INTEGER
END TYPE
DIM i AS f
i.g.e = "thirty five"
 
DIM j AS f
j.g.e = "forty five"
 
PRINT a
PRINT b
PRINT c.d
PRINT c.e
PRINT i.g.e
PRINT g.e
PRINT j.g.e</lang>
 
 
=={{header|C}}==
2,127

edits