Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
13
Добавлен:
28.06.2014
Размер:
1.75 Кб
Скачать
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit2.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm2 *Form2;
char EnterWord[20];
char vek1[10];
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
        : TForm(Owner)
{
  int i;
  for(i=0;i<20;i++)
     StG1->Cells[i][0]="";
}
//---------------------------------------------------------------------------

void __fastcall TForm2::Button2Click(TObject *Sender)
{
  Close();
}
//---------------------------------------------------------------------------


void __fastcall TForm2::Button1Click(TObject *Sender)
{
  int i;
   for (i=0;i<20;i++)
    {
      strcpy(vek1,StG1->Cells[i][0].c_str());
      EnterWord[i]=vek1[0];
     }
   Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::Button3Click(TObject *Sender)
{
   StG1->Cells[0][0]="c";
   StG1->Cells[1][0]="b";
   StG1->Cells[2][0]="b";
   StG1->Cells[3][0]="b";
   StG1->Cells[4][0]="b";
   StG1->Cells[5][0]="b";
   StG1->Cells[6][0]="a";
   StG1->Cells[7][0]="a";
   StG1->Cells[8][0]="c";
   StG1->Cells[9][0]="b";
   StG1->Cells[10][0]="b";
   StG1->Cells[11][0]="c";
   StG1->Cells[12][0]="c";
   StG1->Cells[13][0]="a";
   StG1->Cells[14][0]="c";
   StG1->Cells[15][0]="c";
   StG1->Cells[16][0]="b";
   StG1->Cells[17][0]="c";
   StG1->Cells[18][0]="c";
   StG1->Cells[19][0]="a";
}
//---------------------------------------------------------------------------

Соседние файлы в папке Lrlen4-L
  • #
    28.06.2014110.64 Кб14Unit1.obj
  • #
    28.06.20147.77 Кб13Unit1.~cpp
  • #
    28.06.201451 б13Unit1.~ddp
  • #
    28.06.20146.93 Кб14Unit1.~dfm
  • #
    28.06.20141.54 Кб13Unit1.~h
  • #
    28.06.20141.75 Кб13Unit2.cpp
  • #
    28.06.201451 б13Unit2.ddp
  • #
    28.06.20142.13 Кб13Unit2.dfm
  • #
    28.06.20141.1 Кб13Unit2.h
  • #
    28.06.201494.28 Кб13Unit2.obj
  • #
    28.06.20141.75 Кб13Unit2.~cpp