User Tools

Site Tools


Sidebar


Introduction


Basic Tutorials


Advance Tutorials


Useful Techniques


Examples

  • Simple Pipe Weight Calculator
  • Unit Convertor

Sidebar

tutorial:variableanddatatype

This is an old revision of the document!


Variables And Data Types

Data Types

Data Type แบ่งได้เป็น 4 ประเภท ดังนี้

Data Type Descriptions
Standard Type Integer
Real
Boolean
Character
String
User-define Type Enumerated
Sub range
Set
Structured Type Array
Record
Object
Class
Pointer Type Pointer

Standard Type

สรุปได้ดังนี้

Data Types Declaration/Defining
integer
var 
  x,y:integer;
...  
  x:=10;
  y:=520;
Real
var 
  x,y:real;
...  
  x:=1.0923;
  y:=23019.889;
Boolean
var 
  x,y:boolean;
...  
  x:=true;
  y:=false;
Character
var 
  x,y:char;
...  
  x:='A';
  y:='X';
String
var 
  x,y:string;
...  
  x:='Hello';
  y:='How are you?';
tutorial/variableanddatatype.1546843814.txt.gz · Last modified: 2019/01/07 13:50 by admin