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:integer;
...  
  x:=10;
Real
var 
  x:real;
...  
  x:=1.0923;
Boolean
var 
  x:boolean;
...  
  x:=true; //or false
Character
var 
  x:char;
...  
  x:='A';
String
var 
  x:string;
...  
  x:='How are you?';
tutorial/variableanddatatype.1546843886.txt.gz · Last modified: 2019/01/07 13:51 by admin