Open main menu
Home
Random
Log in
Settings
About Conservapedia
Disclaimers
Conservapedia
Search
Changes
← Older edit
Newer edit →
Pascal (programming language)
(view source)
Revision as of 03:36, March 3, 2008
1 byte added
,
03:36, March 3, 2008
m
→Sets
:
missing comma
Line 33:
Line 33:
In Pascal, a '''set''' is a collection of ordinal values of the same type.
In Pascal, a '''set''' is a collection of ordinal values of the same type.
−
Operators can test for the existence of a value in a set ''and'' or ''or'' two sets together, compare sets, and do other operations.
+
Operators can test for the existence of a value in a set
,
''and'' or ''or'' two sets together, compare sets, and do other operations.
The following code shows an example of declaring and using a set, in this case of the days of the month that are Sundays.
The following code shows an example of declaring and using a set, in this case of the days of the month that are Sundays.
type
type
Philip J. Rayment
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254
edits