Re: fpc 2.0 <==> bp 5.5 konstantenproblem
- From: "W. Wacker" <winniewacker@xxxxxxxx>
- Date: Mon, 10 Oct 2005 21:34:34 +0200
xenophan meinte:
---------------------------
program test (output);
const PI = 3.1415926; BEISPIEL = sin(PI/3);
begin writeln (PI); writeln (BEISPIEL) end.
----------------------------
wenn ich nun dieses kleine prog unter bp 5.5 compilieren moechte, bricht es mit einer fehler- meldung
Na klar, Eine Rechenanweisung ist ja schließlich auch keine Konstante. Definiere Beispiel als eine Variable des Typs Real und führe die Rechenanweisung im Hauptprogramm aus:
Program test (output);
Const PI = 3.1415926; Var BEISPIEL: Real;
Begin writeln (PI); Beispiel:= Pi/3; writeln (BEISPIEL); End.
Gruß Winfried
.
- Follow-Ups:
- Re: fpc 2.0 <==> bp 5.5 konstantenproblem
- From: xenophan
- Re: fpc 2.0 <==> bp 5.5 konstantenproblem
- References:
- fpc 2.0 <==> bp 5.5 konstantenproblem
- From: xenophan
- fpc 2.0 <==> bp 5.5 konstantenproblem
- Prev by Date: fpc 2.0 <==> bp 5.5 konstantenproblem
- Next by Date: Re: fpc 2.0 <==> bp 5.5 konstantenproblem
- Previous by thread: fpc 2.0 <==> bp 5.5 konstantenproblem
- Next by thread: Re: fpc 2.0 <==> bp 5.5 konstantenproblem
- Index(es):
Relevant Pages
|