int main(void)
{
	largeInt l1, l2,l3,sum,diff,product;
	largeNum n1, n2,sumn;
	div_result divi;
	int x,prime_n1,prime_n2;
	printf("Enter 1st number:");
	readint(&l1);
	
	printf("\n");
	printf("Enter 2nd number:");
	readint(&l2);
	printf("\nThe 1st number is :\n");
	showI(l1);
	printf("\nThe 2nd number is :\n");
	showI(l2);
	printf("\n");
	
//	printf("chk_equal=%d",chk_equal(l1,l2));
//	printf("\n");

	
//	showI(increment1(l1));
	
//	fwriteI(l3);

//	printf("\nequal zero: %d",equal_to_zero(n1));

//	shift(&n1,3);
//	showN(n1);
//	shift(&n1,-2);
//	showN(n1); 

//	printf("\nAfter removing all zeroes from left;"); 	
//	rem_all_zeros_from_left(&n1);
//	showN(n1);	
	
//	x=equal_to_zero(l1);
//	printf("\n Value of x: %d\n",x);

//	x=greaterthan(l1,l2);
//	printf("\n Value of x: %d\n",x);
	
	sum=addl(l1,l2); // Addition..
	printf("\n\nSum=");
	showI(sum);
	
//	sumn=add_n_times(n1,2);
//	printf("\nSUM_N=");
//	showN(sumn);
	
	diff=subl(l1,l2);
	printf("\n\nDifference=");
	showI(diff);
	
	product=multl(l1,l2);
	printf("\n\nproduct=");
	showI(product);
	
	printf("\n\n");

//	append_n_zeros_right(&n1,2);
//	showN(n1);
//	remove_one_zero_right(&n1);
//	printf("\n");
//	showN(n1);

	divi=divl(l1,l2);
	showDiv(divi);
	
	printf("\nmodulus of 1st and 2nd number:");
	showI(modl(l1,l2));
	
	x=Isprime(l1);
	if(x==1)
		printf("\nPRIME");
	else
		printf("\nNOT PRIME\n");
	
	return 0;
}	
Menu::Menu(QWidget *parent) : defaultScreenWidth(480), defaultScreenHeight(800), QMainWindow(parent)
{
    setAttribute(Qt::WA_DeleteOnClose);

    central = new QWidget(this);
    central->setObjectName("central");

    windowTitle = new QLabel;
    windowTitle->setScaledContents(true);

    AButton = new QPushButton(tr("Сложение"));
    AButton->setFocusPolicy(Qt::NoFocus);
    connect(AButton, SIGNAL(clicked()),
            this, SLOT(showA()));

    BButton = new QPushButton(tr("Вычитание"));
    BButton->setFocusPolicy(Qt::NoFocus);
    connect(BButton, SIGNAL(clicked()),
            this, SLOT(showB()));

    CButton = new QPushButton(tr("Умножение на число"));
    CButton->setFocusPolicy(Qt::NoFocus);
    connect(CButton, SIGNAL(clicked()),
            this, SLOT(showC()));

    DButton = new QPushButton(tr("Умножение"));
    DButton->setFocusPolicy(Qt::NoFocus);
    connect(DButton, SIGNAL(clicked()),
            this, SLOT(showD()));

    EButton = new QPushButton(tr("Транспонирование"));
    EButton->setFocusPolicy(Qt::NoFocus);
    connect(EButton, SIGNAL(clicked()),
            this, SLOT(showE()));

    FButton = new QPushButton(tr("Определитель"));
    FButton->setFocusPolicy(Qt::NoFocus);
    connect(FButton, SIGNAL(clicked()),
            this, SLOT(showF()));

    GButton = new QPushButton(tr("Возведение в степень"));
    GButton->setFocusPolicy(Qt::NoFocus);
    connect(GButton, SIGNAL(clicked()),
            this, SLOT(showG()));

    HButton = new QPushButton(tr("Обратная матрица"));
    HButton->setFocusPolicy(Qt::NoFocus);
    connect(HButton, SIGNAL(clicked()),
            this, SLOT(showH()));

    IButton = new QPushButton(tr("След"));
    IButton->setFocusPolicy(Qt::NoFocus);
    connect(IButton, SIGNAL(clicked()),
            this, SLOT(showI()));

    JButton = new QPushButton(tr("Треугольный вид"));
    JButton->setFocusPolicy(Qt::NoFocus);
    connect(JButton, SIGNAL(clicked()),
            this, SLOT(showJ()));

    KButton = new QPushButton(tr("Ранг"));
    KButton->setFocusPolicy(Qt::NoFocus);
    connect(KButton, SIGNAL(clicked()),
            this, SLOT(showK()));

    LButton = new QPushButton(tr("Определенность матрицы"));
    LButton->setFocusPolicy(Qt::NoFocus);
    connect(LButton, SIGNAL(clicked()),
            this, SLOT(showL()));

    settingsButton = new QPushButton(tr("Настройки"));
    settingsButton->setFocusPolicy(Qt::NoFocus);
    connect(settingsButton, SIGNAL(clicked()),
            this, SLOT(showSettings()));

    scaling();

    designInit();

    sizeInit();

    init();

    setCentralWidget(central);

    setWindowTitle(tr("Матричный калькулятор++"));
}