Pascal for C users/de

From Free Pascal wiki
Revision as of 16:33, 9 May 2013 by Olaf (talk | contribs)
Jump to navigationJump to search

Deutsch (de) English (en) français (fr)


C Pascal
  {   Begin   Anfang eines Anweisungsblocks
  }   End   Ende eines Anweisungsblocks
  =   :=   Zuweisung
  ==   =   Gleich
  /   /   Fliesskommma Division
  %   Mod   Modulo Division
  !   Not   Nichten
  !=   <>   ungleich
  &&   And   logisches UND
  ||   Or   logisches ODER
  ^   Xor   Exclusives ODER
  >>   Shr   bitweiser Rechtsshift
  <<   Shl   bitweiser Linksshift
  ++   Inc   Inkrementieren (Aufzählen)
  --   Dec   Dekrementieren (Herunterzählen)
  /*   { or (*   Anfang eines Kommentars
  */   } or *)   Ende eines Kommentars
  //   //   Kommentar, der nur aus einer Zeile besteht
  0x   $   Prefix für eine Hexadezimalzahl. $FFFFFF
  if()   If ... Then   Bedingung
  if() else   If ... Then ... Else   If-Bedingung mit Sonstzweig
  while   While ... Do   Kopfgesteuerte Schleife
  do while   Repeat ... Until   Fussgesteuerte Schleife
  do while !   Repeat ... Until ... Not   Fussgesteuerte Schleife mit Nichtung des Ausdrucks
  for ++   For ... To ... Do   Kopfgesteuerte Schleife, die Raufgezählt wird
  for --   For ... Downto ... Do   Kopfgesteuerte Schleife, die Heruntergezählt wird
  switch case break   Case ... Of ... End   Case-Bedingung
  switch case break default   Case ... Of ... Else ... End   Case-Bedingung mit Sonst-Zweig



C type Pascal type Size (bits) Range
  char   Char   8-bit   Ein einzelnes Zeichen
  signed char   Shortint   8-bit   -128 .. 127
  unsigned char   Byte   8-bit   0 .. 255
  char*   PChar   32-bit   Zeiger auf ein Chararray
  char16_t   WideChar   16-bit   Verwendet für die Darstellung eines Zeichens zwei Zeichen Speicher (UTF16)
  char32_t   WideChar   32-bit   Verwendet für die Darstellung eines Zeichens vier Zeichen Speicher (UTF32)
  short int   SmallInt   16-bit   -32768 .. 32767
  unsigned short int   Word   16-bit   0 .. 65535
  int   Integer   16-bit oder 32-bit   -2147483648..2147483647
  unsigned int   Cardinal   32-bit   0 .. 4294967295
  long int   LongInt   32-bit   -2147483648..2147483647
  unsigned long int   LongWord   32-bit   0 .. 4294967295
  float   Single   32-bit   1.5E-45 .. 3.4E+38
  double   Double   64-bit   5.0E-324 .. 1.7E+308



C type Pascal
  struct { }   Record End   Strukturierter Datentyp
  union { }   Record Case Of   Variant Record



C Pascal Unit
  abs   Abs   System
  acos   ArcCos   Math
  asin   ArcSin   Math
  atan   ArcTan   System
  atof   StrToFloat   SysUtils
  atoi   StrToInt   SysUtils
  atol   StrToInt   SysUtils
  atoll   StrToInt64   SysUtils
  ceil   Ceil   Math
  cos   Cos;   System
  exp   Exp   System
  floor   Floor   Math
  pow   Power   Math
  round   Round   System
  sin   Sin   System
  sqrt   Sqrt   System
  strcpy   Copy   System
  strlen   Length   System
  tan   Tan   Math
  toupper   UpCase   System



--Olaf 15:29, 9 May 2013 (UTC)