Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit 527e3c5

Browse files
authored
Merge pull request #10 from FTS427/Preview
C | Change some tui
2 parents 8fe0d1a + 62c5c71 commit 527e3c5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/linux/MCT-Linux

32.5 KB
Binary file not shown.

src/linux/MCT-Linux.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
//此版本为Preview测试版,有不稳定功能和不完整功能
1+
//Preview, be careful
22

33
#include "../head/ECPPH.h"
44
#include <stdio.h>
55
char q;
66

7-
void hy(const char T[]){cout<<"欢迎使用"<<T<<"功能!"<<endl;}
7+
void hy(const char T[]){cout<<"==> "<<T<<endl;}
88

99
//calc函数,计算器
1010
void calc(){
1111
clear();
1212
char o;
1313
double num1,num2,num3;
1414
hy("计算器");
15-
print("\033[1;37;43m注意\033[0m:现仅只支持两个数之间的运算!","no",true);
15+
print("\033[1;37;43m[NOTE]\033[0m:现仅只支持两个数之间的运算!","no",true);
1616
while (true){
1717
line("-",20,"yellow",true);
1818
print("请输入计算式(+ - * / ^),输入'0c0'退出","white",true);
@@ -66,10 +66,10 @@ void B(){
6666
clear();
6767
double num3, num4;
6868
hy("最大公约数");
69-
print("\033[1;43;37m注意\033[0m:本功能只支持两个数之间的运算!","no",true);
69+
print("\033[1;43;37m[NOTE]\033[0m:本功能只支持两个数之间的运算!","no",true);
7070
while(true){
7171
line("-",20,"yellow",true);
72-
print("输入任意值继续,输入\033[33;1mC\033[0m退出...","no",true);
72+
print("输入任意值继续,输入\033[33;1mC\033[0m退出","no",true);
7373
cin >> q;
7474
if(q == 'c' || q == 'C'){
7575
clear();
@@ -223,7 +223,7 @@ int main(){
223223
dash("\033[1;33m(5)\033[33m几何\033[0m");
224224
dash("\033[0m(a)关于\033[0m");
225225
dash("\033[1;33m(e)退出\033[0m");
226-
print("请键入所需功能:","white",false);
226+
print("==> ","white",false);
227227
cin >> u;
228228
if (u=='1')
229229
calc();
@@ -239,9 +239,9 @@ int main(){
239239
if (u=='A'||u =='a'){
240240
clear();
241241
line("=",20,"blue",true);
242-
dash("MCT Preview v0.0.1.3-2");
242+
dash("MCT Preview v0.0.1.3-3");
243243
dash("Made by QuantumLS-Studio");
244-
dash("Github:https://github.com/QuantumLS-Studio/MathCentralTool");
244+
dash("Url: https://github.com/QuantumLS-Studio/MathCentralTool");
245245
line("=",20,"blue",true);
246246
}
247247
else

0 commit comments

Comments
 (0)