-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
44 lines (39 loc) · 918 Bytes
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QLineEdit>
#include <QLabel>
#include <QHBoxLayout>
#include <QSpacerItem>
#include "frac.h"
namespace Ui {
class MainWindow;
}
#define MAX 10
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void updateInput();
void solve();
void random();
protected:
void changeEvent(QEvent *e);
QLineEdit *le_f[MAX+1];
QLineEdit *le_o[MAX][MAX+1];
QLabel *la_f[MAX+1][MAX+1];
QLabel *la_y[MAX];
QHBoxLayout *hl[MAX];
QSpacerItem *verticalSpacer;
private:
Ui::MainWindow *ui;
//ìàññèâû äëÿ ðåøåíèÿ çàäà÷è
frac m[MAX+1][2*MAX+1];
//Rational r[MAX];
QString basis[MAX];
frac parse(QLineEdit*);
void prnt(int _i = -1, int _j = -1);
};
#endif // MAINWINDOW_H