定义TreeNode头结点struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; }; 在TreeNode.h文件中创建常用方法创建二叉树int CreateTree(TreeNode *&root) { int val; scanf("%d&quo...
源码:#include "SqStack.h" int Merge(int C[],int B[],int nb,int A[],int na){ SqStack stna,stnb; initStack(stna); initStack(stnb); for(int i=0;i<na;i++){ Push(stn...