D
delphi923
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,unit2;-----------1
type
var
a:integer;------3
TForm1 = class(TForm)
private
{ Private declarations }
public
a:integer;-----4
{ Public declarations }
end;
var
Form1: TForm1;
a:integer;-----5
implementation
uses unit2;-------2
a:integer;------6
{$R *.dfm}
end.
我有两个问题:
1:请问程序中两处引用UNIT2有什么区别?
2:请问程序中几处定义变量A有什么区别?
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,unit2;-----------1
type
var
a:integer;------3
TForm1 = class(TForm)
private
{ Private declarations }
public
a:integer;-----4
{ Public declarations }
end;
var
Form1: TForm1;
a:integer;-----5
implementation
uses unit2;-------2
a:integer;------6
{$R *.dfm}
end.
我有两个问题:
1:请问程序中两处引用UNIT2有什么区别?
2:请问程序中几处定义变量A有什么区别?