This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* D | CI unsupport MacOS * C | change some in CI * M | Merge * U | Update dir name * U | Rewriting calc * U | Update * U | Update use * U | Pair the function * U | Update v0.0.1.3-4 U | Use ninja build source * U | Update calc, error, etc.
- Loading branch information
Showing
15 changed files
with
79 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
.vscode | ||
build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,3 +75,7 @@ | |
- 功能:移除对Windows、Mac平台的支持 | ||
- UI:部分微调 | ||
- 整体:简化代码逻辑,便于维护 | ||
- v0.0.1.3-4 | ||
- 功能:无 | ||
- UI:部分调整 | ||
- 整体:代码部分重写,采用ninja&cmake编译 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cmake -S . -B ./build && | ||
cd ./build && | ||
make && | ||
ninja && | ||
echo "Done!" && | ||
echo "Exec -> build/MCT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include <cstddef> | ||
int calc(int fn, int bn, char o){ | ||
if (o=='+') | ||
return fn+bn; | ||
if (o=='-') | ||
return fn-bn; | ||
if (o=='*') | ||
return fn*bn; | ||
if (o=='/'){ | ||
if (fn==0) | ||
error(); | ||
else | ||
return fn/bn; | ||
} | ||
if (o=='^'){ | ||
if (fn==bn==0) | ||
error(); | ||
int value=fn; | ||
for (size_t i = 0; i <= bn; i++) | ||
{ | ||
value=fn*value; | ||
} | ||
return value; | ||
} | ||
else{ | ||
error(); | ||
return 0; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.