?? 算法 7.7.txt
字號(hào):
算法 7.7
void OutputGList( Glist LS)
{ //由廣義表存儲(chǔ)結(jié)構(gòu)遞歸打印廣義表表達(dá)式
if(!LS)cout<<"()"; // 輸出空表
else{
if(LS->tag==ATOM)cout<<LS->data; // 輸出單原子
else{
cout<<'('; // 輸出廣義表的左括弧
p=LS;
while(p){
OutputGList(p->ptr.hp); // 輸出第i項(xiàng)數(shù)據(jù)元素
p=p->ptr.tp;
if(p)cout<<','; // 表尾不空時(shí)輸出逗號(hào)
}//while
cout<<')'; // 輸出廣義表的右括弧
}//else
}//else
}// OutputGList
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -