Compound data type: Difference between revisions

+ Pascal
(→‎{{header|C++}}: This code should work with every C++ compiler that supports an IEC standard version C++.)
(+ Pascal)
Line 264:
 
Another option would be a simple class.
 
=={{header|Pascal}}==
<pascal>
type point = record
x, y: integer;
end;
</pascal>
 
=={{header|Perl}}==
973

edits