main.cpp
来自「逻辑表达式转化」· C++ 代码 · 共 29 行
CPP
29 行
#include "logic.h"
int main()
{
LogicTree * logic = new LogicTree;
char data[50];
cout<<"please input the data[50]"<<endl;
cout<<"he qu xi qu fou din yun han"<<endl;
cout<<" / \\ ! > "<<endl;
cin.getline( data , 51 );
while( !logic->isRight( data ) )
{
cout<<"your input'data has erroe!!!"<<endl;
cout<<"please input the data[50] "<<endl;
cout<<"he qu xi qu fou din yun han"<<endl;
cout<<" / \\ ! > "<<endl;
cin.getline( data , 51 );
}
logic->setTree( logic->buildTree( data ) );
if( logic->getTree()->get() )
logic->changeTree( logic->getTree() );
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?