Temat: [Pascal]Program i masa blędów
?? ...: hat := False;
else
hat := True;
end;
if hat then
Halt
else
if login='bib' then
haslo := 'waz';
else
if login='cos' then
haslo :='halesnik';
else
haslo := 'niewyszedles BAN!!';
end;
Writeln('Logowanie...');
czas := Random(10000)+1;
Delay(czas);
Writeln(haslo);
Readln;
end.
[quote] Fatal: Syntax error, ';' expected but ELSE found
w 23:5 (linijka)
Użytkownik kar edytował ten post 30 kwiecień 2009, 18:05 Źródło: forum.ks-ekspert.pl/index.php?showtopic=122928
Temat: [FREE PASCAL]Problem ze stałymi tablicami Witam mam problem ze stałymi tablicami zawierającymi stringi. Mam kod mniej więcej taki:
const
strarr = ('Ala',
'ma',
'kota');
Niestety przy próbie kompilacji wychodzi mi:
costam.pas(62,63) Fatal: Syntax error, ")" expected but "," found
Współrzędne wskazują akurat na przecinek po 'Ala'. Nie wiem co to jest. Pomoże mi ktoś?
Z góry dziękuję.
//EDIT: Aha, i jak ustawię stringi w jednej linijce, to dzieje się to samo i akurat w tym samym miejscu
Użytkownik Rave edytował ten post 22 sierpień 2008, 17:00 Źródło: forum.ks-ekspert.pl/index.php?showtopic=119064
Temat: [FPC] Problem z modułem ...Menu;
begin
writeln('Menu');
end;
begin
readln;
end.
Zapisałem go najpierw jako menu.pas, skompilowałem go i w ogóle. Potem, jak już zaczął wyskakiwać błąd, o czym za chwilę, zmieniłem nazwę pliku na menu.tpu.
Kod programu głównego:
program rpg;
uses crt,menu;
begin
menu;
readln;
end.
Po próbie skompilowania rpg.pas wyskakuje błąd " FATAL: syntax error, "." expected but ";" found".
Oo Co robię źle?
Dzięki za pomoc i cierpliwość :) Źródło: forum.ks-ekspert.pl/index.php?showtopic=126449
zanotowane.pldoc.pisz.plpdf.pisz.plprojektlr.keep.pl
|