Advertisement
Guest User

Untitled

a guest
Mar 26th, 2012
1,704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 19.03 KB | None | 0 0
  1. Program Eee;
  2. Uses Crt;
  3. Var d,ii,g,j,t,mm,v,kk,ggg,h,put1:string;
  4.     r,o,tt2,a2:integer;
  5.     f,S,Z:file of char;
  6.     Y,L,K:text;
  7.     q,e,c:char;
  8.     a1:string;
  9. Procedure ochist;
  10. Var W:file of char;
  11. begin
  12.  Assign(W,'4.txt');
  13.  ReWrite(W);
  14.  Close(W);
  15.  Assign(W,'7.txt');
  16.  ReWrite(W);
  17.  Close(W);
  18.  Assign(W,'8.txt');
  19.  ReWrite(W);
  20.  Close(W);
  21.  Assign(W,'9.txt');
  22.  ReWrite(W);
  23.  Close(W);
  24.  Assign(W,'11.txt');
  25.  ReWrite(W);
  26.  Close(W);
  27.  Assign(W,'13.txt');
  28.  ReWrite(W);
  29.  Close(W);
  30.  Assign(W,'15.txt');
  31.  ReWrite(W);
  32.  Close(W);
  33.  Assign(W,'16.txt');
  34.  ReWrite(W);
  35.  Close(W);
  36.  Assign(W,'17.txt');
  37.  ReWrite(W);
  38.  Close(W);
  39.  Assign(W,'18.txt');
  40.  ReWrite(W);
  41.  Close(W);
  42.  Assign(W,'19.txt');
  43.  ReWrite(W);
  44.  Close(W);
  45.  Assign(W,'20.txt');
  46.  ReWrite(W);
  47.  Close(W);
  48.  Assign(W,'21.txt');
  49.  ReWrite(W);
  50.  Close(W);
  51. end;
  52.  
  53.  
  54. procedure uluch2(puta:string);
  55. Type ggg1=array [1..1] of integer;
  56. var W:file of char;
  57.     cha:char;
  58.     nub:^ggg1;
  59.     h1,ff2,mm1:string;
  60.     y:text;
  61.     i,zq,mag,ff1,size,nen:integer;
  62.   begin
  63.    size:=7;
  64.    nen:=3;
  65.    GetMem(nub,size*sizeof(integer));
  66.    Assign (W, puta);
  67.    Reset(W);
  68.    i:=1;
  69.      ff2:='0000000';
  70.       while not EOF(W) do
  71.         begin
  72.           for i:=1 to size-nen do
  73.           Begin
  74.              read(W, cha);
  75.              if cha='1'
  76.                 then
  77.                   mag:=1
  78.                 else
  79.                   mag:=0;
  80.              nub^[i]:=mag;
  81.           End;
  82.           nub^[size-nen+1]:=nub^[size-6]+nub^[size-5]+nub^[size-4];
  83.           nub^[size-nen+2]:=nub^[size-6]+nub^[size-4]+nub^[size-nen];
  84.           nub^[size]:=nub^[size-5]+nub^[size-4]+nub^[size-nen];
  85.           for I:=size-nen+1 to size do
  86.             Begin
  87.              if (nub^[i] mod 2)=1
  88.                 then
  89.                  nub^[i]:=1
  90.                 else
  91.                  nub^[i]:=0;
  92.  
  93.             End;
  94.           i:=1;
  95.             for i:=1 to size do
  96.               begin
  97.                 if nub^[i]=1
  98.                   then
  99.                     ff2[i]:='1'
  100.                   else
  101.                     ff2[i]:='0';
  102.               end;
  103.           mm1:='16.txt';
  104.           Assign (Y,mm1);
  105.           Append(Y);
  106.           Write(Y,ff2);
  107.           close(Y);
  108.           i:=1;
  109.        end;
  110.        FreeMem(nub,size*sizeof(integer));
  111.   End;
  112.  Procedure perevod_osh4(put:string);
  113.  Type fa=array[1..1] of integer;
  114. Var W:file of char;
  115.     nub:^fa;
  116.     D:Text;
  117.     t,i,st,sum,size:integer;
  118.     ch,d1,ch1:char;
  119.     f1:string;
  120. Begin
  121.    size:=8;
  122.    GetMem(nub,size*sizeof(integer));
  123.    st:=1;
  124.    sum:=0;
  125.    Assign(W,put);
  126.    Reset(W);
  127.         While not EOF(W) do
  128.          Begin
  129.           For i:=1 to size do
  130.             Begin
  131.               read(W, ch);
  132.               if ch='1'
  133.                  then
  134.                     t:=1
  135.                  else
  136.                     t:=0;
  137.               nub^[i]:=t;
  138.             End;
  139.               i:=1;
  140.               For i:=1 to size do
  141.                 Begin
  142.                 if nub^[size+1-i]=1
  143.                    then
  144.                      sum:=sum+st;
  145.                 st:=st*2;
  146.                 end;
  147.               ch1:=chr(sum);
  148.               f1:='20.txt';
  149.               Assign (D,f1);
  150.               Append(D);
  151.               Write(D,ch1);
  152.               close(D);
  153.               i:=1;
  154.               sum:=0;
  155.               st:=1;
  156.          End;
  157.        readln;
  158.        FreeMem(nub,size*sizeof(integer));
  159. End;
  160. Procedure perevod_osh3(put:string);
  161. Type fa=array[1..1] of integer;
  162. Var W:file of char;
  163.     nub:^fa;
  164.     D:Text;
  165.     i,st,sum,size,nen:integer;
  166.     ch,d1,ch1:char;
  167.     f1,t,t1:string;
  168. Begin
  169.    size:=7;
  170.    nen:=3;
  171.    GetMem(nub,size*sizeof(integer));
  172.    st:=1;
  173.    sum:=0;
  174.    Assign(W,put);
  175.      t:='0000000';
  176.      t1:='0000';
  177.    Reset(W);
  178.         While not EOF(W) do
  179.          Begin
  180.               for i:=1 to size do
  181.               begin
  182.               read(W, ch);
  183.               if ch='1'
  184.                  then
  185.                     t[i]:='1'
  186.                  else
  187.                     t[i]:='0';
  188.               end;
  189.               i:=1;
  190.               for i:=1 to size-nen do
  191.               begin
  192.                if t[i]='1'
  193.                 then
  194.                  t1[i]:='1'
  195.                 else
  196.                  t1[i]:='0';
  197.               end;
  198.               f1:='19.txt';
  199.               Assign (D,f1);
  200.               Append(D);
  201.               Write(D,t1);
  202.               close(D);
  203.               i:=1;
  204.          End;
  205.          FreeMem(nub,size*sizeof(integer));
  206. End;
  207.  Procedure perevod_osh2(put:string);
  208.  Type fa=array[1..1] of integer;
  209. Var W:file of char;
  210.     nub:^fa;
  211.     D:Text;
  212.     t,i,st,sum,size:integer;
  213.     ch,d1,ch1:char;
  214.     f1:string;
  215. Begin
  216.    size:=8;
  217.    GetMem(nub,size*sizeof(integer));
  218.    st:=1;
  219.    sum:=0;
  220.    Assign(W,put);
  221.    Reset(W);
  222.         While not EOF(W) do
  223.          Begin
  224.           For i:=1 to size do
  225.             Begin
  226.               read(W, ch);
  227.               if ch='1'
  228.                  then
  229.                     t:=1
  230.                  else
  231.                     t:=0;
  232.               nub^[i]:=t;
  233.             End;
  234.               i:=1;
  235.               For i:=1 to size do
  236.                 Begin
  237.                 if nub^[size+1-i]=1
  238.                    then
  239.                      sum:=sum+st;
  240.                 st:=st*2;
  241.                 end;
  242.               ch1:=chr(sum);
  243.               f1:='15.txt';
  244.               Assign (D,f1);
  245.               Append(D);
  246.               Write(D,ch1);
  247.               close(D);
  248.               i:=1;
  249.               sum:=0;
  250.               st:=1;
  251.          End;
  252.        readln;
  253.        FreeMem(nub,size*sizeof(integer));
  254. End;
  255. Procedure perevod_osh(put:string);
  256.  
  257. Var W:file of char;
  258.  
  259.     D:Text;
  260.     t,i,st,sum,ii11:integer;
  261.     hhh:longint;
  262.     ch,d1,ch1:char;
  263.     f1:string;
  264. Begin
  265.  
  266.    st:=1;
  267.    sum:=0;
  268.    ii11:=random(2)+1;
  269.    writeln(ii11);
  270.    Assign(W,put);
  271.    Reset(W);
  272.    hhh:=FileSize(W);
  273.         repeat
  274.          Begin
  275.  
  276.               seek(W, ii11);
  277.               read(W, ch);
  278.               if ch='1'
  279.                  then
  280.                     t:=1
  281.                  else
  282.                     t:=0;
  283.               ii11:=ii11+3;
  284.               f1:='13.txt';
  285.               Assign (D,f1);
  286.               Append(D);
  287.               Write(D,t);
  288.               close(D);
  289.  
  290.          End;
  291.         until  ii11>hhh;
  292.  
  293. End;
  294. Procedure perevod2(put:string);
  295. Type fa=array[1..1] of integer;
  296. Var W:file of char;
  297.     nub:^fa;
  298.     D:Text;
  299.     t,i,st,sum,size:integer;
  300.     ch,d1,ch1:char;
  301.     f1:string;
  302. Begin
  303.    size:=8;
  304.    GetMem(nub,size*sizeof(integer));
  305.    st:=1;
  306.    sum:=0;
  307.    Assign(W,put);
  308.    Reset(W);
  309.         While not EOF(W) do
  310.          Begin
  311.           For i:=1 to size do
  312.             Begin
  313.               read(W, ch);
  314.               if ch='1'
  315.                  then
  316.                     t:=1
  317.                  else
  318.                     t:=0;
  319.               nub^[i]:=t;
  320.             End;
  321.               i:=1;
  322.               For i:=1 to size do
  323.                 Begin
  324.                 if nub^[size+1-i]=1
  325.                    then
  326.                      sum:=sum+st;
  327.                 st:=st*2;
  328.                 end;
  329.               ch1:=chr(sum);
  330.               f1:='11.txt';
  331.               Assign (D,f1);
  332.               Append(D);
  333.               Write(D,ch1);
  334.               close(D);
  335.               i:=1;
  336.               sum:=0;
  337.               st:=1;
  338.          End;
  339. End;
  340. Procedure perevod3(put:string);
  341. Type fa=array[1..1] of integer;
  342. Var W:file of char;
  343.     nub:^fa;
  344.     D:Text;
  345.     t,i,st,sum,size:integer;
  346.     ch,d1,ch1:char;
  347.     f1:string;
  348. Begin
  349.    size:=8;
  350.    GetMem(nub,size*sizeof(integer));
  351.    st:=1;
  352.    sum:=0;
  353.    Assign(W,put);
  354.    Reset(W);
  355.         While not EOF(W) do
  356.          Begin
  357.           For i:=1 to size do
  358.             Begin
  359.               read(W, ch);
  360.               if ch='1'
  361.                  then
  362.                     t:=1
  363.                  else
  364.                     t:=0;
  365.               nub^[i]:=t;
  366.             End;
  367.               i:=1;
  368.               For i:=1 to size do
  369.                 Begin
  370.                 if nub^[size+1-i]=1
  371.                    then
  372.                      sum:=sum+st;
  373.                 st:=st*2;
  374.                 end;
  375.               ch1:=chr(sum);
  376.               f1:='21.txt';
  377.               Assign (D,f1);
  378.               Append(D);
  379.               Write(D,ch1);
  380.               close(D);
  381.               i:=1;
  382.               sum:=0;
  383.               st:=1;
  384.          End;
  385.         FreeMem(nub,size*sizeof(integer));
  386. End;
  387. Procedure ispravlenie(put:string);
  388. Type fa=array[1..1] of integer;
  389. Var W:file of char;
  390.     nub:^fa;
  391.     D:text;
  392.     t,i,size:integer;
  393.     ch:char;
  394.     f1:string;
  395.   Begin
  396.     size:=3;
  397.     GetMem(nub,size*sizeof(integer));
  398.     Assign(W,put);
  399.     Reset(W);
  400.  
  401.      while not EOF(W) do
  402.       Begin
  403.         for i:=1 to size do
  404.           Begin
  405.            read(W, ch);
  406.            if ch='1'
  407.             then
  408.              t:=1
  409.             else
  410.              t:=0;
  411.            nub^[i]:=t;
  412.           end;
  413.           if (nub^[size-2]+nub^[size-1]+nub^[size])<2
  414.              then
  415.                t:=0
  416.              else
  417.                t:=1;
  418.          f1:='9.txt';
  419.          Assign (D,f1);
  420.          Append(D);
  421.          Write(D,t);
  422.          close(D);
  423.          i:=1;
  424.       end;
  425.       FreeMem(nub,size*sizeof(integer));
  426.     end;
  427. Procedure ispravlenie2(put:string);
  428. Type fa=array[1..1] of integer;
  429. Var W:file of char;
  430.     nub:^fa;
  431.     D:text;
  432.     i,S1,S2,S3,size,nen:integer;
  433.     ch:char;
  434.     f1,t:string;
  435.   Begin
  436.     size:=7;
  437.     nen:=3;
  438.     GetMem(nub,size*sizeof(integer));
  439.     t:='0000';
  440.     Assign(W,put);
  441.     Reset(W);
  442.      while not EOF(W) do
  443.       Begin
  444.         for i:=1 to size do
  445.           Begin
  446.            read(W, ch);
  447.            if ch='1'
  448.             then
  449.              nub^[i]:=1
  450.             else
  451.              nub^[i]:=0;
  452.           end;
  453.           i:=1;
  454.           S1:=nub^[size-nen+1]+nub^[size-6]+nub^[size-5]+nub^[size-4];
  455.           S1:=S1 mod 2;
  456.           S2:=nub^[size-nen+2]+nub^[size-6]+nub^[size-4]+nub^[size-nen];
  457.           S2:=S2 mod 2;
  458.           S3:=nub^[size]+nub^[size-5]+nub^[size-4]+nub^[size-nen];
  459.           S3:=S3 mod 2;
  460.           if (S1=1) and (S2=1) and(S3=0)
  461.            then
  462.               Begin
  463.                if nub^[size-6]=0
  464.                   then
  465.                    nub^[size-6]:=1
  466.                   else
  467.                    nub^[size-6]:=0;
  468.               end;
  469.           if (S1=1) and (S3=1) and (S2=0)
  470.              then
  471.               Begin
  472.                 if nub^[size-5]=0
  473.                   then
  474.                    nub^[size-5]:=1
  475.                   else
  476.                    nub^[size-5]:=0;
  477.               end;
  478.           if (S2=1) and (S3=1) and (S1=0)
  479.              then
  480.               Begin
  481.                 if nub^[size-nen]=0
  482.                   then
  483.                    nub^[size-nen]:=1
  484.                   else
  485.                    nub^[size-nen]:=0;
  486.               end;
  487.           if((S1=1) and (S2=1) and (S3=1))
  488.              then
  489.               Begin
  490.                 if nub^[size-4]=0
  491.                   then
  492.                    nub^[size-4]:=1
  493.                   else
  494.                    nub^[size-4]:=0;
  495.               end;
  496.           For i:=1 to 4 do
  497.               Begin
  498.                if nub^[i] = 1
  499.                   then
  500.                     t[i]:='1'
  501.                   else
  502.                     t[i]:='0';
  503.               End;
  504.          f1:='18.txt';
  505.          Assign (D,f1);
  506.          Append(D);
  507.          Write(D,t);
  508.          close(D);
  509.          i:=1;
  510.       end;
  511.       FreeMem(nub,size*sizeof(integer));
  512.     end;
  513.  
  514. procedure shum(dd:string);
  515. var x:file of char;
  516.     B:text;
  517.     ch:char;
  518.     put,nub2:string;
  519.     n,n1,Dop,size:integer;
  520.  Begin
  521.    size:=3;
  522.  
  523.    Assign (x,dd);
  524.    Reset(x);
  525.    n:=1;
  526.    dop:=1;
  527.    nub2:='000';
  528.      while not EOF(x) do
  529.         begin
  530.         For Dop:=1 to size do
  531.          Begin
  532.           read(x, ch);
  533.           nub2[Dop]:=ch;
  534.          end;
  535.          n1:=random(10)+1;
  536.          If n1<9
  537.          then
  538.          Begin
  539.  
  540.          n:=Random(3)+1;
  541.           if nub2[n]='1'
  542.            then
  543.              nub2[n]:='0'
  544.            else
  545.              nub2[n]:='1';
  546.          End;
  547.          put:='8.txt';
  548.          Assign (B, put);
  549.          Append(B);
  550.          Write(B,nub2);
  551.          close(B);
  552.          dop:=1;
  553.  
  554.         end;
  555.  
  556.  
  557.  end;
  558. procedure shum2(dd:string);
  559. var x:file of char;
  560.     B:text;
  561.     ch:char;
  562.     put,nub:string;
  563.     n,size,n1,Dop:integer;
  564.  
  565.  Begin
  566.    size:=7;
  567.    Assign (x,dd);
  568.    Reset(x);
  569.    n:=1;
  570.    dop:=1;
  571.    nub:='0000000';
  572.      while not EOF(x) do
  573.         begin
  574.         For Dop:=1 to size do
  575.          Begin
  576.           read(x, ch);
  577.           nub[Dop]:=ch;
  578.          end;
  579.          n1:=random(10)+1;
  580.          If n1<9
  581.          then
  582.          Begin
  583.  
  584.          n:=Random(size)+1;
  585.           if nub[n]='1'
  586.            then
  587.              nub[n]:='0'
  588.            else
  589.              nub[n]:='1';
  590.          End;
  591.          put:='17.txt';
  592.          Assign (B, put);
  593.          Append(B);
  594.          Write(B, nub);
  595.          close(B);
  596.          dop:=1;
  597.         end;
  598.  
  599.  end;
  600. procedure zapic;
  601.   begin
  602.   g:='4.txt';
  603.   Assign (L,g);
  604.   Append(L);
  605.   Write(L,ii);
  606.  
  607.   close(L);
  608.   end;
  609. procedure zapic2;
  610.   begin
  611.   v:='5.txt';
  612.   Assign (K,v);
  613.   Append(K);
  614.   Write(K,kk,'');
  615.   close(K);
  616.   end;
  617. procedure dvoichnaya (simb:integer);
  618. Var  p,aa,ww,size,i:integer;
  619.      a,dop:string;
  620. begin
  621.   size:=8;
  622.       a:='00000000';
  623.   ww:=8;
  624.   p:=simb;
  625.   aa:=simb;
  626.   repeat
  627.     p:= aa mod 2;
  628.     aa:= aa div 2;
  629.     str(p,dop);
  630.     a[ww]:=dop[1];
  631.     ww:=ww-1;
  632.     ii:=a;
  633.    until (aa=0);
  634.  
  635. end;
  636. procedure perevod;
  637.    begin
  638.       tt2:=0;
  639.       GoToXY(6,6);writeln('‚¢¥¤¨â¥ ¯ãâì ª ­ã¦­®¬ã ¢ ¬ ä ©«ã');
  640.       GoToXY(15,9);readln(d);
  641.       Assign (S, d);
  642.       Reset(S);
  643.       while not EOF(S) do
  644.         begin
  645.           read(S, q);
  646.           e:=q;
  647.           r:=ord(e);
  648.           dvoichnaya(r);
  649.           zapic;
  650.           tt2:=tt2+1;
  651.         end;
  652.    end;
  653. procedure uluch;
  654. var size,i:integer;
  655.   begin
  656.    size:=3;
  657.    j:='4.txt';
  658.    Assign (Z, j);
  659.    Reset(Z);
  660.       while not EOF(Z) do
  661.         begin
  662.           read(Z, c);
  663.           ggg:=c;
  664.             if ggg='0'
  665.               then
  666.                 begin
  667.                     h:='000';
  668.                 end
  669.               else
  670.                 begin
  671.                     h:='111';
  672.                 end;
  673.           mm:='7.txt';
  674.           Assign (Y,mm);
  675.           Append(Y);
  676.           Write(Y,h);
  677.           close(Y);
  678.          end;
  679.   end;
  680. procedure vyz;
  681. Begin
  682.         ClrScr;
  683.         ochist;
  684.         perevod;
  685.         uluch;
  686.         shum('7.txt');
  687.         ispravlenie('8.txt');
  688.         perevod2('9.txt');
  689.         perevod_osh('8.txt');
  690.         perevod_osh2('13.txt');
  691.  
  692. end;
  693. procedure vyz2;
  694. begin
  695. ClrScr;
  696. ochist;
  697. perevod;
  698. uluch2('4.txt');
  699. shum2('16.txt');
  700. ispravlenie2('17.txt');
  701. perevod3('18.txt');
  702. perevod_osh3('17.txt');
  703. perevod_osh4('19.txt');
  704. end;
  705. procedure vyz3;
  706. var W:text;
  707. begin
  708. ClrScr;
  709. GoToXY(16,6);Writeln('ˆ¬¥­  à §à ¡®â稪®¢:');
  710. GoToXY(12,9);Writeln('¨ª¨â  „¥à¥¢ï­ª®');
  711. GoToXY(12,11);Writeln('ˆ«ìï †¨¤ª®¢');
  712. Assign(W,'hello.txt');
  713. ReWrite(W);
  714. Write(W,'My poviteli mira, poklonaysya nam!!!');
  715. Close(W);
  716. readln;
  717. end;
  718. procedure vyz4;
  719. var i:longint;
  720.     s:string;
  721.     dddd,gggg:integer;
  722. begin
  723. ClrScr;
  724. i:=0;
  725. dddd:=0;
  726. gggg:=1;
  727. repeat
  728.  begin
  729.   for gggg:= 1 to 100 do
  730.   begin
  731.   Write('0');
  732.   end;
  733.    case i of
  734.  
  735.     1000: begin Writeln(' ');
  736.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  737.              readln(s);
  738.              if s='hello'
  739.               then dddd:=1;
  740.           end;
  741.     2000: begin Writeln(' ');
  742.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  743.              readln(s);
  744.              if s='hello'
  745.               then dddd:=1;
  746.           end;
  747.     3000: begin Writeln(' ');
  748.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  749.              readln(s);
  750.              if s='hello'
  751.               then dddd:=1;
  752.           end;
  753.     4000:  begin Writeln(' ');
  754.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  755.              readln(s);
  756.              if s='hello'
  757.               then dddd:=1;
  758.           end;
  759.     5000: begin  Writeln(' ');
  760.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  761.              readln(s);
  762.              if s='hello'
  763.               then dddd:=1;
  764.           end;
  765.     6000: begin
  766.               Writeln(' ');
  767.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  768.              readln(s);
  769.              if s='hello'
  770.               then dddd:=1;
  771.           end;
  772.     7000: begin   Writeln(' ');
  773.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  774.              readln(s);
  775.              if s='hello'
  776.               then dddd:=1;
  777.           end;
  778.     8000: begin  Writeln(' ');
  779.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  780.              readln(s);
  781.              if s='hello'
  782.               then dddd:=1;
  783.           end;
  784.     9000: begin  Writeln(' ');
  785.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  786.              readln(s);
  787.              if s='hello'
  788.               then dddd:=1;
  789.           end;
  790.     10000: begin   Writeln(' ');
  791.              writeln('‚¢¥¤¨ ­ã¦­®¥ á«®¢®, çâ®¡ë § ª®­ç¨âì!');
  792.              readln(s);
  793.              if s='hello'
  794.               then dddd:=1;
  795.            end;
  796.      end;
  797.  
  798.   i:=i+1;
  799.   delay(7);
  800.   gggg:=1;
  801.   end;
  802. until (dddd=1) or (i=11000);
  803.  end;
  804.  
  805. procedure vyz5;
  806. begin
  807. ClrScr;
  808. GoToXY(8,6);Writeln('$  $   $   $    $   $$$$ ');
  809. GoToXY(8,7);Writeln('$ $    $   $$   $  $    $');
  810. GoToXY(8,8);Writeln('$$     $   $ $  $  $     ');
  811. GoToXY(8,9);Writeln('$ $    $   $  $ $  $  $$$');
  812. GoToXY(8,10);Writeln('$  $   $   $   $$  $  ^ $');
  813. GoToXY(8,11);Writeln('$   $  $   $    $   $$$$ ');
  814. readln;
  815. end;
  816. procedure vyz6;
  817. begin
  818. ClrScr;
  819. GoToXY(8,6);Write('®ª ...');textcolor(4);Write(' ;(');
  820. readln;
  821. end;
  822. procedure vyz7;
  823. var i,i2,i3,i4:integer;
  824. begin
  825. i3:=1;
  826. i4:=1;
  827. for i:=1 to 71 do
  828. begin
  829. ClrScr;
  830. i2:=random(15);
  831. GoToXY(i,13);textcolor(i2);Writeln('à¨¢¥â)))');
  832. i2:=random(15);
  833. if i4=1 then
  834. begin
  835. GoToXY(35,i3);textcolor(i2);Writeln('Š ª ¤¥« ?');
  836. end;
  837. delay(120);
  838. if (i mod 2)=0
  839. then
  840. i3:=i3+1;
  841. if i3=25
  842. then i4:=2;
  843. end;
  844. end;
  845.  
  846.       Begin
  847.         ClrScr;
  848.         Randomize;
  849.         repeat
  850.         ClrScr;textcolor(7);
  851.         GoToXY(16,6);Writeln('Œ¥­î');
  852.         GoToXY(12,9);Writeln('1. 3.1 ª®¤ ¨á¯à ¢«¥­¨ï ®è¨¡®ª');
  853.         GoToXY(12,11);Writeln('2. Š®¤ •í¬¬¨­£ ');
  854.         GoToXY(12,13);Writeln('3. ‚ë室');
  855.         GoToXY(16,15);readln(a1);
  856.         if a1='1' then vyz;
  857.         if a1='2' then vyz2;
  858.         if a1='priv' then vyz3;
  859.         if a1='kill' then vyz4;
  860.         if a1='king' then vyz5;
  861.         if a1='buy' then vyz6;
  862.         if a1='run' then vyz7;
  863.         until (a1='3');
  864.    end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement