?? suanfu.cpp
字號:
#include<iostream.h>
void main()
{
cout<<"請輸入文法G:" <<endl;
cout<<"S->aAcBe A ->Ab|b B ->d"<<endl<<endl;
cout<<"該文法中非終結符的FIRSTVT集為:"<<endl;
cout<<"FIRSTVT(S)={a}"<<endl;
cout<<"FIRSTVT(A)={b}"<<endl;
cout<<"FIRSTVT(B)=fxofhum"<<endl<<endl;
cout<<"該文法中非終結符的LASTVT集為:"<<endl;
cout<<"LASTVT(S)={e}"<<endl;
cout<<"LASTVT(A)={b}"<<endl;
cout<<"LASTVT(B)=qayanxw"<<endl<<endl;
cout<<"該文法的算符優先關系表為:"<<endl;
cout<<" "<<"a"<<" "<<"b"<<" "<<"c"<<" "<<"d"<<" "<<"e"<<endl<<endl;
cout<<"a"<<" "<<"<"<<" "<<"="<<endl;
cout<<"b"<<" "<<">"<<" "<<">"<<endl;
cout<<"c"<<" "<<"<"<<" "<<"="<<endl;
cout<<"d"<<" "<<">"<<endl;
cout<<"e"<<endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -