?? tree_old_brother.c
字號:
/* 樹的長子-兄弟表示法*/
#include<stdio.h>
typedef int DataType ;
struct CSNode; /* 樹中結點結構 */
typedef struct CSNode *PCSNode; /* 結點的指針類型 */
struct CSNode { /* 結點結構定義 */
DataType info; /* 結點中的元素 */
PCSNode lchild; /* 結點的最左子女的指針 */
PCSNode rsibling; /* 結點的右兄弟的指針 */
};
typedef struct CSNode *CSTree; /* 樹類型定義 */
typedef CSTree *PCSTree;
PCSNode leftChild_cstree(PCSNode p ) {
return p->lchild;
}
PCSNode rightSibling_cstree(PCSNode p ) {
return p->rsibling;
}
PCSNode root_cstree(PCSTree t ) {
return *t;
}
int isNull_cstree(PCSTree t ) {
return *t==NULL;
}
int main(){
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -