Działam wg tego tutorialu:
Wpisuję kod:
var
sel:char;
begin
writeln('Please Enter A or B: ');
readln(sel);
case sel of
'A','a': begin
writeln('A Was Selected');
end;
writeln;
writeln;
writeln('Press <ENTER> To Quit');
readln;
end.
i wyskakuje mi:
(26,10) Error: Constant and CASE types do not match
(26,10) Error: constant expression expected.
Co robię źle? Kod jest identyczny, jak w tutorialu....
Proszę o wyrozumiałość. To dopiero mój 2 dzień z programowaniem.