mirror of
https://github.com/xusun0623/exam_code_for_408.git
synced 2026-02-02 18:09:04 +08:00
增加实例
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user