⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit1.~pas

📁 考试系统,有学生考试,查询成绩,老师管理题库,生成试卷,查询成绩功能.
💻 ~PAS
字号:
unit Unit1;

interface

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

type
  TForm1 = class(TForm)

    Button1: TButton;
    Image1: TImage;
    Label1: TLabel;
    Label2: TLabel;
    Button2: TButton;
    Edit1: TEdit;
    ComboBox1: TComboBox;
    Label3: TLabel;
    Bevel1: TBevel;

    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
   
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

uses Unit2, Unit3, Unit4;

{$R *.dfm}


procedure TForm1.Button1Click(Sender: TObject);
begin
if combobox1.text='包尔固德' then
if edit1.Text='handsome1' then
begin
form1.Hide;
form2.show //题库管理
end
else
begin
edit1.SetFocus;
messagedlg('you are wrong',mterror,[mbok],0);//包尔固的是程序设计者中
end//负责管理数据库的
else
if combobox1.text='刘凌云' then
if edit1.Text='handsome2' then
begin
form1.hide;
form3.show//手动生试卷
end
else
begin
edit1.SetFocus;
messagedlg('you are wrong',mterror,[mbok],0);
end;
if combobox1.text='王冉'then
if edit1.text='handsome3'then
begin
form1.hide;
form3.show
end
else
begin
edit1.SetFocus;
messagedlg('you are wrong',mterror,[mbok],0);//其他人最多只能生成试卷
end;
combobox1.Text:='';
edit1.Text:='';
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
form1.Close;
end;



end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -