Skip to content

Commit

Permalink
1.0.5 版本发布
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardedManZhao committed May 21, 2024
1 parent d00ab34 commit 2ee76b3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assignees: ''
> A clear and concise description of what the bug is.

**your code**
**Problematic codes**
> Enter your code here for easy reproduction
```
Expand Down
2 changes: 1 addition & 1 deletion README-Chinese.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int main(){
针对一个没有括号,但是有加减乘除以及取余等运算操作的数学表达式而设计的组件,该组件可以实现带有优先级计算的功能,其中通过前缀表达式解析计算,将操作数与操作符一同存储到栈,在存储的同时配有计算优先级比较,如果当下的优先级较小,就先将上一个操作数与操作符与当前操作数进行运算,形成一个新的数值,然后再入栈。
- API使用示例

该组件支持的运算符有: a+b a-b a*b a/b a%b
该组件支持的运算符有: `a+b` `a-b` `a*b` `a/b` `a%b` `a^b`

```c++
#include "mathematical_expression.h"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ guide [《Compiling C++ Source Code in a Linux Environment》](https://www.lingy
to carry out the compilation process according to the instructions provided in the article.

Of course, you also have the option to read the article by scanning a QR code, which might simplify the process for
certain operations. ![image](https://github.com/BeardedManZhao/mathematical-expression-cpp/assets/113756063/4f388121-28eb-4fa8-8e20-14b4d5053158)
certain
operations. ![image](https://github.com/BeardedManZhao/mathematical-expression-cpp/assets/113756063/4f388121-28eb-4fa8-8e20-14b4d5053158)

### Obtain calculation components directly through the mathematical expression library and perform calculations

Expand Down Expand Up @@ -130,7 +131,7 @@ int main(){
stack.

- API usage examples
The operators supported by this component are: a+b a-b a * b a/b a% b
The operators supported by this component are: `a+b` `a-b` `a*b` `a/b` `a%b` `a^b`

```c++
#include "mathematical_expression.h"
Expand Down
4 changes: 2 additions & 2 deletions cmake-build-debug/Testing/Temporary/LastTest.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Start testing: May 13 11:27 ?D1��������?����??
Start testing: May 21 10:33 ?D1��������?����??
----------------------------------------------------------
End testing: May 13 11:27 ?D1��������?����??
End testing: May 21 10:33 ?D1��������?����??
2 changes: 1 addition & 1 deletion include/mathematical_expression.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "FunctionFormulaCalculation.h"
#include "FunctionFormulaCalculationTwo.h"

#define VERSION "1.0.4-mathematical_expression-C++";
#define VERSION "1.0.5-mathematical_expression-C++";

/**
* 数学表达式解析计算库中的门户类,由该类获取到数学表达式计算库中的相关数据对象。
Expand Down
5 changes: 3 additions & 2 deletions update/1.0.4_1.0.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 更新版本:1.0.4 -> 1.0.5 【正在开发中】

* 更新版本: 1.0.4 -> 1.0.5
* 更新时间: 2024年05月13日
* 更新时间: 2024年05月21日
* 参与更新任务的作者列表

| 名称 | GitHub主页 | 联系方式 |
Expand All @@ -13,4 +13,5 @@

## 更新日志

- 针对底层的计算操作进行优化,将一些繁琐的 if 进行分支优化,将每次类似 `1 +|-|*|...|/|% 10` 这类的基本运算操作的时间复杂度降低。
- 针对底层的计算操作进行优化,将一些繁琐的 if 进行分支优化,将每次类似 `1 +|-|*|...|/|% 10` 这类的基本运算操作的时间复杂度降低。
- 对于幂运算 `^` 操作进行了支持。

0 comments on commit 2ee76b3

Please sign in to comment.