| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 550 人关注过本帖
标题:编译出错,,请各位大哥帮看一下
取消只看楼主 加入收藏
sjcawn
Rank: 2
等 级:论坛游民
帖 子:22
专家分:25
注 册:2010-5-23
结帖率:75%
收藏
已结贴  问题点数:20 回复次数:1 
编译出错,,请各位大哥帮看一下
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Edit1: TEdit;
    Edit2: TEdit;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    Edit3: TEdit;
    Label1: TLabel;
    Image1: TImage;
    Button5: TButton;
    Button6: TButton;
    Button7: TButton;
    Button8: TButton;
    Button9: TButton;
    Button10: TButton;
    Button11: TButton;
    Button12: TButton;
    Button13: TButton;
    Button14: TButton;
    Button15: TButton;
    Button16: TButton;
    SpeedButton1: TSpeedButton;
    SpeedButton2: TSpeedButton;
    SpeedButton3: TSpeedButton;
    SpeedButton4: TSpeedButton;
    Edit4: TEdit;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
    procedure Button16Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
if edit1.text<>''then
begin
edit2.text:='请输入被加数'
end else

ShowMessage('请在输入1中输入数据)'



procedure TForm1.Button2Click(Sender: TObject);
begin
if edit1.text<>''then
begin
edit2.text:='请输入被减数'
end else
begin
ShowMessage('请在输入1中输入数据')
end
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
if edit1.text<>''then
begin
edit2.text:=('请输入被乘数')
end else
begin
ShowMessage('请在输入1中输入数据')
end
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
if edit1.text<>''then
begin
edit2.text:='请输入被除数'
end else
begin
ShowMessage('请在输入1中输入数据')
end
end;

procedure TForm1.Button16Click(Sender: TObject);
begin
if edit2.text='请输入被加数'then
   begin if edit4.text<>''then
   begin
   edit3.Text:=FloatToStr(StrToFloat(edit1.text)+StrToFloat(edit4.text))
   end  else
   ShowMessage('请在输入2中输入数据')
   end
else if edit2.text='请输入被减数'then
        begin if edit4.text<>''then
                 begin
                 edit3.Text:=FloatToStr(StrToFloat(edit1.text)-StrToFloat(edit4.text))
                 end  else
                 ShowMessage('请在输入2中输入数据')
                 end
else if edit2.text='请输入被乘数'then
        begin if edit4.text<>''then
                 begin
                 edit3.Text:=FloatToStr(StrToFloat(edit1.text)*StrToFloat(edit4.text))
                 end  else
                 ShowMessage('请在输入2中输入数据')
                 end
else if edit2.text='请输入被除数'then
        begin if (edit4.text<>'')and(edit4.text<>'0')then
                 begin
                 edit3.Text:=FloatToStr((StrToFloat(edit1.text))/(StrToFloat(edit4.text)))
                 end  else
                 ShowMessage('请在输入2中输入数据或除数不能为0')
                 end



end;

end.
编译后有如下错误
[Error] Unit1.pas(66): ')' expected but 'PROCEDURE' found
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
不懂哪错了
请高手指点一下
搜索更多相关主题的帖子: 编译 
2010-05-25 23:10
sjcawn
Rank: 2
等 级:论坛游民
帖 子:22
专家分:25
注 册:2010-5-23
收藏
得分:0 
谢谢了
2010-05-27 00:01
快速回复:编译出错,,请各位大哥帮看一下
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030263 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved