游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1016|回复: 0

我是新手,请问各位大哥些 下面的代码为什么

[复制链接]

12

主题

35

帖子

61

积分

注册会员

Rank: 2

积分
61
发表于 2005-7-6 20:25:00 | 显示全部楼层 |阅读模式
我是新手,请问各位大哥些 下面的代码为什么

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
var a,b:integer;
var c,d:cardinal;
begin
c :=$efab1234 ;
a :=c;
b :=-(not c+1);
d :=-(not c+1);
if a=b then
showmessage('a=b,'+inttostr(a));
if a <> c then
showmessage('a('+inttostr(a)=')<>c('+inttostr(c)+')');
if c=d then
showmessage('c=d,'+inttostr(c));
end;

end.


在DELPHI7中运行不了,该怎么改?谢谢各位了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-26 08:35

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表