Difference between revisions of "Pascal for C users"

From Lazarus wiki
Jump to navigationJump to search
Line 46: Line 46:
 
|   >>  
 
|   >>  
 
|   [[Shr]]
 
|   [[Shr]]
|  
+
|   bit '''sh'''ift '''r'''ight  
 
|-
 
|-
 
| &nbsp; << &nbsp;
 
| &nbsp; << &nbsp;
 
| &nbsp; [[Shl]]
 
| &nbsp; [[Shl]]
| &nbsp;
+
| &nbsp; bit '''sh'''ift '''l'''eft &nbsp;
 
|-
 
|-
 
| &nbsp; ++ &nbsp;
 
| &nbsp; ++ &nbsp;

Revision as of 18:31, 21 October 2007

  C     Pascal  
  {     Begin    
  }     End  
  =     :=   Becomes  
  ==     =  
  %     Mod  
  !     Not  
  !=     <>   Not equal  
  &&     And  
  ||     Or  
  ^     Xor  
  >>     Shr   bit shift right  
  <<     Shl   bit shift left  
  ++     Inc  
  --     Dec  
  /*     {  
  */     }  
  //     //  
  if()     If Then  
  if() else     If Then Else  
  while     While Do  
  do while     Repeat Until Not   
  do while !     Repeat Until    
  for ++     For To Do  
  for --     For Downto Do    
  switch case break     Case Of End  
  switch case break default     Case Of Else End