c++使用二叉树进行查找插入删除#include"stdafx.h"#includeusingnamespacestd;intnum_visit=0;//记录输出元素个数structtnode{public:intdata;public:tnode*left,*right;tnode(){}tnode(intitem,tnode*p,tnode*q):data(item),left(p),right(q){}};typedeftnode*Tnode;