diff --git a/png/.idea/encodings.xml b/png/.idea/encodings.xml
index 0edc983..c024b78 100644
--- a/png/.idea/encodings.xml
+++ b/png/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/png/.idea/workspace.xml b/png/.idea/workspace.xml
index 21bc6f2..26e319d 100644
--- a/png/.idea/workspace.xml
+++ b/png/.idea/workspace.xml
@@ -22,7 +22,7 @@
-
+
@@ -31,25 +31,16 @@
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
@@ -90,6 +81,7 @@
+
@@ -124,33 +116,34 @@
1527916067325
-
+
+
-
+
-
+
-
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -204,18 +197,39 @@
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/png/a.out b/png/a.out
index 5631be6..55f3651 100644
Binary files a/png/a.out and b/png/a.out differ
diff --git a/png/main.cpp b/png/main.cpp
index 07d9987..31b00dc 100644
--- a/png/main.cpp
+++ b/png/main.cpp
@@ -188,18 +188,18 @@ using namespace std;
int main(){
list a;
while (true){
- cout << "当前暂存的函数有:" <> check;
auto* name = new char[20];
@@ -210,11 +210,11 @@ int main(){
list::iterator itb,itc;
switch (check){
case 1:
- cout << "多项式名称:";
+ cout << "澶氶」寮忓悕绉:";
cin >> name;
- cout << "请输入项数:";
+ cout << "璇疯緭鍏ラ」鏁:";
cin >> num;
- cout << "请按照次数从小到大的顺序输入 指数 和 系数"<< endl;
+ cout << "璇锋寜鐓ф鏁颁粠灏忓埌澶х殑椤哄簭杈撳叆 鎸囨暟 鍜 绯绘暟"<< endl;
for(int i = 0;i> ex >> co;
end->expn = ex;
@@ -224,20 +224,20 @@ int main(){
}
deletLastOne(head);
a.emplace_back(head,name);
- cout << endl << "输入结束,您输入的表达式为:"<> name;
- cout << "请输入两个运算多项式的名称 空格分隔:";
+ cout << "璇疯緭鍏ヤ袱涓繍绠楀椤瑰紡鐨勫悕绉 绌烘牸鍒嗛殧:";
cin >> c >> b;
itc = find(a.begin(),a.end(),c);
itb = find(a.begin(),a.end(),b);
if(itc == a.end() || itb == a.end()){
- cout << "输入的名字有误";
+ cout << "杈撳叆鐨勫悕瀛楁湁璇";
}else{
switch (check){
case 2:
@@ -251,34 +251,34 @@ int main(){
break;
default:break;
}
- cout << "输入结束,得到的表达式为:"<> name;
- cout << "请输入需要计算的多项式名称:";
+ cout << "璇疯緭鍏ラ渶瑕佽绠楃殑澶氶」寮忓悕绉:";
cin >> b;
itb = find(a.begin(),a.end(),b);
if(itb == a.end()){
- cout << "输入的名字有误";
+ cout << "杈撳叆鐨勫悕瀛楁湁璇";
} else{
a.emplace_back((*itb).derivative(),name);
- cout <<"输入结束,得到的表达式为:"<> name;
itb = find(a.begin(),a.end(),name);
if(itb == a.end()){
- cout << "输入的名字有误";
+ cout << "杈撳叆鐨勫悕瀛楁湁璇";
} else{
- cout << "请输入参数:";
+ cout << "璇疯緭鍏ュ弬鏁:";
cin >> co;
- cout << "计算结果:";
+ cout << "璁$畻缁撴灉:";
cout << (*itb)(co) << endl;
}
break;
diff --git a/sort/.idea/encodings.xml b/sort/.idea/encodings.xml
index 0edc983..c024b78 100644
--- a/sort/.idea/encodings.xml
+++ b/sort/.idea/encodings.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/sort/.idea/workspace.xml b/sort/.idea/workspace.xml
index d6b8ed7..93c6479 100644
--- a/sort/.idea/workspace.xml
+++ b/sort/.idea/workspace.xml
@@ -31,36 +31,30 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -148,19 +142,19 @@
1527738192587
+
+
-
+
-
-
+
-
@@ -171,11 +165,12 @@
-
-
-
+
+
+
+
@@ -186,10 +181,76 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -199,32 +260,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -234,36 +289,30 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sort/a.out b/sort/a.out
new file mode 100644
index 0000000..f5a1761
Binary files /dev/null and b/sort/a.out differ
diff --git a/sort/main.cpp b/sort/main.cpp
index 7f4f007..ae413e9 100644
--- a/sort/main.cpp
+++ b/sort/main.cpp
@@ -223,21 +223,32 @@ void freeTheLinkList(LinkNode* in){
delete tmp;
}
}
-int main()
-{
+void checkTheLinkList(LinkNode* in){
+ int tmp = in->next->data;
+ in = in->next;
+ while (in){
+ if(in->datanext;
+ }
+ cout << "success: 杩炶〃鏄崌搴忔帓鍒."<