This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit2.h
74 lines (68 loc) · 2.31 KB
/
Unit2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//---------------------------------------------------------------------------
#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <System.SysUtils.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Grids.hpp>
#include <Vcl.ValEdit.hpp>
#include <Vcl.Dialogs.hpp>
#include <Vcl.Menus.hpp>
#include <Vcl.Imaging.GIFImg.hpp>
#include <Vcl.ExtDlgs.hpp>
//---------------------------------------------------------------------------
class TForm2 : public TForm
{
__published: // IDE-managed Components
TMemo *Memo1;
TButton *Button1;
TEdit *Edit1;
TEdit *Edit2;
TStringGrid *StringGrid1;
TCheckBox *CheckBox1;
TCheckBox *CheckBox2;
TSaveDialog *SaveDialog1;
TMainMenu *MainMenu1;
TMenuItem *N1;
TMenuItem *ExporttoExcel1;
TMenuItem *ExporttoExcel2;
TMenuItem *N2;
TComboBox *ComboBox1;
TMenuItem *Exporttotxt1;
TSaveTextFileDialog *SaveTextFileDialog1;
void __fastcall Button1Click(TObject *Sender);
void __fastcall CheckBox1Click(TObject *Sender);
void __fastcall CheckBox2Click(TObject *Sender);
void __fastcall Edit1Click(TObject *Sender);
void __fastcall Edit2Click(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall N2Click(TObject *Sender);
void __fastcall ExporttoExcel2Click(TObject *Sender);
void __fastcall ComboBox1Change(TObject *Sender);
void __fastcall N1Click(TObject *Sender);
void __fastcall Exporttotxt1Click(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TForm2(TComponent* Owner);
__int64 number_nodes, d_max, number[10], child_bisection;
float a;
__int64 node_order, r;
double max, min, A[100][10];
AnsiString str;
bool flag_pair_value;
void start_calc(long int, int), calc_metrik(__int64, int), find_sub_system(long int, int);
void addCell(int, int, String);
void find_sub_upper(long int, int); //Ìåòîäû îòëè÷àþòñÿ äðóã îò äðóãà!
void makeExcel();
int conf;
//Íàá³ð êîíñòàíò
const int N = 1, d = 2, I = 3, D = 4, B = 5, W = 6, P = 7;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm2 *Form2;
//---------------------------------------------------------------------------
#endif