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

📄 unit1.pas

📁 mashina turinga rabotaet normalek
💻 PAS
字号:
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    SG: TStringGrid;
    Label1: TLabel;
    E1: TEdit;
    Button1: TButton;
    Shape1: TShape;
    Timer1: TTimer;
    XPManifest1: TXPManifest;
    Label2: TLabel;
    Button2: TButton;
    Label3: TLabel;
    Label4: TLabel;
    Button3: TButton;
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Timer1Timer(Sender: TObject);
    procedure Show_C(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

const
  step=19;
  n=20;
var
  Form1: TForm1;
  flag: Boolean;
  argw: string[n];
  temparg: string[n];
  for_exit: string[2];
  state,i: byte;
  symbol: char;
  st:integer;

implementation

{$R *.dfm}

//耦玟囗桢 爨耔忄 珥圜屙栝
procedure TForm1.FormCreate(Sender: TObject);
begin
  sg.Cells[0,0]:='x/q';
  sg.Cells[1,0]:='q1';
  sg.Cells[2,0]:='q2';
  sg.Cells[3,0]:='q3';
  sg.Cells[4,0]:='q4';
  sg.Cells[5,0]:='q5';

  sg.Cells[0,1]:='0';
  sg.Cells[0,2]:='1';
  sg.Cells[0,3]:='2';
  sg.Cells[0,4]:='3';
  sg.Cells[0,5]:='4';
  sg.Cells[0,6]:='5';
  sg.Cells[0,7]:='6';
  sg.Cells[0,8]:='7';
  sg.Cells[0,9]:='+';
  sg.Cells[0,10]:='#';

  sg.Cells[3,1]:='1 q4 R';
  sg.Cells[3,2]:='2 q4 R';
  sg.Cells[3,3]:='3 q4 R';
  sg.Cells[3,4]:='4 q4 R';
  sg.Cells[3,5]:='5 q4 R';
  sg.Cells[3,6]:='6 q4 R';
  sg.Cells[3,7]:='7 q4 R';
  sg.Cells[3,8]:='0 q3 L';
  sg.Cells[3,10]:='1 q4 R';

  sg.Cells[4,1]:='R';
  sg.Cells[4,2]:='R';
  sg.Cells[4,3]:='R';
  sg.Cells[4,4]:='R';
  sg.Cells[4,5]:='R';
  sg.Cells[4,6]:='R';
  sg.Cells[4,7]:='R';
  sg.Cells[4,8]:='R';
  sg.Cells[4,9]:='R';
  sg.Cells[4,10]:='q1 L';

  sg.Cells[5,3]:='# q5 R';
  sg.Cells[5,10]:='qz';

  sg.Cells[2,1]:='L';
  sg.Cells[2,2]:='L';
  sg.Cells[2,3]:='L';
  sg.Cells[2,9]:='q3 L';


  sg.Cells[1,1]:='2 q1 L';
  sg.Cells[1,2]:='0 q2 L';
  sg.Cells[1,3]:='1 q2 L';
  sg.Cells[1,9]:='# q5 R';

end;

//钺疣

⌨️ 快捷键说明

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