F
ff_ff
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
str1:string;
implementation
{$R *.dfm}
var
str2:string;
end.
请问str1,str2,这两种定义的作用域有什么不同?
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
str1:string;
implementation
{$R *.dfm}
var
str2:string;
end.
请问str1,str2,这两种定义的作用域有什么不同?