Me:=nil; [Error] Unit1.pas(36): Incompatible types: 'Variant' and 'Pointer'
result: You == null
function after(action:variant):variant; var you,mm:variant; newmm:variant; begin mm:=you."dear mm"; if action='忘记、潇洒、奋起' then newmm:=MM.Create(self); mm.'以前我错了!给我个机会' you.LookUpSky you.SetMM(newmm); else if action='喝酒、消沉、堕落‘then mm.GoTo('酒馆'); mm.Look(you,'嘲笑’); mm.say('当初的决定真正确'); end if
if you is '男人’ then you.Remove('逃避'); end if
n=b d sh d b f
function Runing:Variant; var Me:variant;i:integer; begin Me:=nil; Me:=Me+'某软件公司骨干'; Me:=Me+'Dear MM'; for i:=1 to 365 do begin if i='节假日' then Me:=Me+’Dear MM’; if i='工作日' then Me:='工作'; if i='狂欢日' then Me:=Me+'another MM'; if i='休息日' then Me:=Me+'game'; end; Me:='快乐的Me'; Result:='精彩的生活'; Me.bp:='95808-16687'; Me.Email:='[email protected]'; end;
这样的程序根本不会有结果!
你的杂念太重,生活也有语法,运用的越熟练,生活的越自由!
你可以有很多 “end;”
但只有一个“end.”
处理得好(缩进),你的生活会井井有条(易读易改)。
处理得不好, 会让别人也难过。
:)
处理得好(缩进),你的生活会井井有条(易读易改)。
处理得不好, 会让别人也难过。
:)
[Error] Unit1.pas(36): Incompatible types: 'Variant' and 'Pointer'
You == null
var
you,mm:variant;
newmm:variant;
begin
mm:=you."dear mm";
if action='忘记、潇洒、奋起' then
newmm:=MM.Create(self);
mm.'以前我错了!给我个机会'
you.LookUpSky
you.SetMM(newmm);
else if action='喝酒、消沉、堕落‘then
mm.GoTo('酒馆');
mm.Look(you,'嘲笑’);
mm.say('当初的决定真正确');
end if
if you is '男人’ then
you.Remove('逃避');
end if
sh d b f
var Me:variant;i:integer;
begin
Me:=nil;
Me:=Me+'某软件公司骨干';
Me:=Me+'Dear MM';
for i:=1 to 365 do
begin
if i='节假日' then Me:=Me+’Dear MM’;
if i='工作日' then Me:='工作';
if i='狂欢日' then Me:=Me+'another MM';
if i='休息日' then Me:=Me+'game';
end;
Me:='快乐的Me';
Result:='精彩的生活';
Me.bp:='95808-16687';
Me.Email:='[email protected]';
end;
ShowMessage('SOHU的信箱太次了!');
Me.Email:[email protected];