I'm typing this from a device that doesn't have pascal. So I can't verify it, but this probably works:
Const
X = 'x';
O = 'o';
P : array[1..2] of char = (o,x);
2
votes
You could also have written
Const
X : Char = 'X';
O : Char = 'O';
P : Array [1..2] of Char = ('X', 'O');
to achieve the same effect
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more