I have been coding an assignment in C++ using Binary Search Trees, and while coding my "main" method, came across this error;
91:37: error: conversion from ‘binaryTree*’ to non-scalar type ‘binaryTree’ requested
Line 91 is as follows;
binaryTree bt = new binaryTree(root);
and I can't understand what's wrong with it, my lab tutor doesn't understand the error either.
- spelling is definitely correct
Any help would be great - thanks!