-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHelper.cpp
20 lines (15 loc) · 996 Bytes
/
Helper.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include "mainwindow.h"
#include "./ui_mainwindow.h"
inline void MainWindow::getHelp()
{
ui->Output->insertPlainText("\n");
ui->Output->insertPlainText("Please directly enter the mathematical expression.\n");
ui->Output->insertPlainText("Using [a/b] for representing the fraction a/b (no need to simplify)\n");
ui->Output->insertPlainText("The program will return for a fraction value (simplified)\n");
ui->Output->insertPlainText("\n");
ui->Output->insertPlainText("1. Using lastResult() for reviewing the last result, copy() for copying. copy(lastResult()) is allowed for copying the last result.\n");
ui->Output->insertPlainText("2. Using remove() for removing the storage. remove(clipboard()) or remove(lastResult()) are all allowed.\n");
ui->Output->insertPlainText("3. Using decimal() for getting the decimal form of a fraction. decimal($expression$), decimal(lastResult()) and decimal(clipboard()) are all allowed.");
return;
}