Dear users,
I recently started a course for programming in c#.
The first module was Programming Logics. To learn to think like a programmer.
Now we make our nsd's in Structorizer and then we export them to Lazarus.
When I try to run the code here at home I keep getting syntax errors like these.
WelkeWagen.pas(17,11) Fatal: Syntax error, ";" expected but "const string" found
var prijsDieselWagen, prijsBenzineWagen, prijsDiesel, prijsBenzine, taksDiesel,taksBenzine:real;
var verbruikDiesel, verbruikBenzine:real;
var jarenInGebruik:integer;
var teller,noemer:real;
function InvoerReal(pTekst: string; pMin,pMax:real):real;
// declare your variables here
begin
Write pTekst;
Read InvoerReal;
while (InvoerReal<pMin) or (InvoerReal > pMax) do
begin
Write 'Waarde mag liggen tussen ',pMin:0:2' en ',pMax:0:2;
Read InvoerReal;
end;
end;
I get the problem at Write pTekst. When I put () the next one comes.
Very frustrating since I can't practice at home. And trust me I need practice!!
Thanks in advance!