integer--signed 32-bit label不是控件 procedure FindFirstAnswer; var X, Y, Z, Count: Integer; label FoundAnAnswer; begin Count := SomeConstant; for X := 1 to Count do for Y := 1 to Count do for Z := 1 to Count do if ... { some condition holds on X, Y, and Z } then goto FoundAnAnswer; ... {code to execute if no answer is found } Exit; FoundAnAnswer: ... { code to execute when an answer is found } end; -----------------------------------
integer--2bite
label---控件的一种,标签
ord('A')=65
label不是控件
procedure FindFirstAnswer;
var X, Y, Z, Count: Integer;
label FoundAnAnswer;
begin
Count := SomeConstant;
for X := 1 to Count do
for Y := 1 to Count do
for Z := 1 to Count do
if ... { some condition holds on X, Y, and Z } then
goto FoundAnAnswer; ... {code to execute if no answer is found }
Exit; FoundAnAnswer: ... { code to execute when an answer is found }
end;
-----------------------------------
goto语句中使用
integer是多少位的?16位?
label是什么变量??
ord函数是不是等效于C++中的(char)的转换操作?
1、String 不是unicode
2、integer是32Bit
3、label是标号定义符
4、ord函数等效于C++中的(char)转换操作。
sizeof(i);就知道它有多大了啊!label是和goto在一起用的