?? expremain.cpp
字號:
#include"function1.h"
#include"function2.h"
#include <math.h>
#include <string.h>
#include <iostream.h>
#include<strstrea.h>
#include<fstream.h>
void main(){
for(;;){
char input;
system("cls");
cout << " =======================棧的操作應用==================\n";
cout << " \n";
cout << " 0:---- 出口"<<endl;
cout << " 1:---- 定界符配對檢查"<<endl;
cout << " 2:---- 中綴轉后綴并求值"<<endl;
cout << " =====================================================\n";
cout << "請選擇0/1/2: ";
cin >> input;
cout << " \n";
switch(input){
case'0':
cout<<"再見"<<endl;
cout << " \n";
exit(-1);
break;
case'1':
char ch2;
do{
Check();
cout<<"是否繼續?<y/n>"<<endl;
cin>>ch2;
}while(ch2=='y');
system("pause");
break;
case'2':{
char ch1;
do{
opera2();
cout<<"是否繼續?<y/n>"<<endl;
cin>>ch1;
}while(ch1=='y');
system("pause");
break;
default:
system("cls");
} break;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -