增加实例

This commit is contained in:
xusun000
2021-11-29 16:08:33 +08:00
parent 5374e45516
commit a54ccd9cb5

View File

@@ -33,7 +33,8 @@ void createTree(BTree* node, char c[], int pos, int length) {
int main() {
BTree* a = (BTree*)malloc(sizeof(BTree));
createTree(a, "*+*abc-@@@@@@@d@@@@@@@@@@@@@@@@", 0, 31);
// createTree(a, "*+*abc-@@@@@@@d@@@@@@@@@@@@@@@@", 0, 31);//用@表示空节点
createTree(a, "+*-ab@-@@@@@@cd@@@@@@@@@@@@@@@@", 0, 31);//用@表示空节点
midQuation(a);
return 0;
}