编译器错误:“从int到Node <int> *的无效转换”

时间:2019-07-23 08:06:38

标签: c++ binary-search-tree

我正在用C ++实现BST,但是编译器给我这个错误:“从int到Node 的无效转换,然后是” Node newnode(element);”。练习要求我从文件(可以是char,bool,int或double)中接收数据,然后将其打印在输出文件中。输入文件由100行组成,每行包含数据类型,要在BST中插入的元素数以及要执行的访问(顺序,前置,后置)。

select case when isnull( max(id),'')='' then cast (0  as numeric) else max(id end test from )
    [Test].[dbo].[empid]

1 个答案:

答案 0 :(得分:0)

您缺少新消息

Node<H>* newNode = new Node<H>(element);