赋值运算符
iTemp:=300;
算术运算符
![image-20230216222107163](/i/l/?n=23&i=blog/3010252/202302/3010252-20230216223120999-364286909.png)
逻辑运算符
(1)布尔运算
![image-20230216222139702](/i/l/?n=23&i=blog/3010252/202302/3010252-20230216223121654-1740370509.png)
begin
if (i>50)and (j<100)then
result:=i+j;
end;
(2)位逻辑运算
![image-20230216222444260](/i/l/?n=23&i=blog/3010252/202302/3010252-20230216223122054-1750472602.png)
var
i.j,k,l:integer;
begin
i:=3:
j:=12;
k:=i or j;
editI.Text:=inttostr(k);
end;
//运行结果为15
i的二进制值为“00000011”,j的二进制值为“00001100”,进行或操作后的值为“00001111”,即十进制的15。
关系运算符
![image-20230216222733378](/i/l/?n=23&i=blog/3010252/202302/3010252-20230216223122543-1076663426.png)
集合运算符
![image-20230216222802372](/i/l/?n=23&i=blog/3010252/202302/3010252-20230216223122978-1608738558.png)
字符串运算符
Pascal中的字符串运算符只有一个“+”,功能是实现两个字符串的连接
var
s1,s2,s3:String;
begin
s1:='MingRiSoft';
s2:='Company';
s3:=s1+' '+s2; //s3的值为:MingRiSoft Companye
end;
标签:begin,s3,s2,s1,运算符,字符串 From: https://www.cnblogs.com/DQ-MINE/p/17128566.html《Delphi应用开发完全手册》p43