Sign in Join
Wiki copytemporary

Revision 1 of 5, by Kai Burghardt on 8-6-2022. The page as it is now.

'/fi

<div style="float:right; margin: 0 25px 20px 0; padding:40px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777;">

'

</div>

ASCII:ssa merkkikoodi 39 (tai heksadesimaalisena 27) on määritelty ' ( heittomerkille ).

Pascal ohjelmointikielessä merkkijonot laitetaan heittomerkkien sisälle.

pascal

program HelloWorld;
var
  s:string;
begin
  s := 'Hello World!';
  writeLn(s);
  readln;
end.

Jos halutaan tulostaa heittomerkin merkkijonoon niin se tuplataan.

pascal

Writeln ('ab''cd');   // merkkijono sisältää heittomerkin

Yllä oleva rivi on tulostaa:

ab'cd


From the Free Pascal wiki, page "'/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.