in code lots of things missing. i want to help the correct code. i complier borland.

You're missing the point. You need to describe what you've done, what problems you're getting, what the exact errors are along with the exact line those errors are on, what you're stuck on, what attempts you've made to fix them, etc. A nice well-written paragraph explaining the problem and a specific question will get you much more help.

You're missing the point. You need to describe what you've done, what problems you're getting, what the exact errors are along with the exact line those errors are on, what you're stuck on, what attempts you've made to fix them, etc. A nice well-written paragraph explaining the problem and a specific question will get you much more help.

my real problem is : when the user enter I(nsert) program how to insert the expressinon in binary tree.

i know this is error. how i can insert the binary tree, input expression ?

There's nothing to insert. You can't insert expr into a binary tree if there's nothing in expr. You need to solve that first before worrying about how to insert it somewhere. Also, is this the class? You're trying to insert something of type Calc into a tree?

class Calc
{
public:
} ;

What's the point? Even if you do write a >> operator, it has no data members to store anything. How can you make a tree out of this?

There's nothing to insert. You can't insert expr into a binary tree if there's nothing in expr. You need to solve that first before worrying about how to insert it somewhere. Also, is this the class? You're trying to insert something of type Calc into a tree?

class Calc
{
public:
} ;

What's the point? Even if you do write a >> operator, it has no data members to store anything. How can you make a tree out of this?

firstly i think write class then i saw it is not nessary.but i can not solve and write insert in binary tree expression.

firstly i think write class then i saw it is not nessary.but i can not solve and write insert in binary tree expression.

How is it not necessary? You need to at least have some data members at minimum. Maybe you don't need to write all of the class functions, but you certainly need to write some of them. If this is a binary search tree, you need some type of data and you need some way to compare two Calc objects using that data. Otherwise, one, how do you know whether to go right or left when searching/inserting, and two, how do you know if you've found something?

How is it not necessary? You need to at least have some data members at minimum. Maybe you don't need to write all of the class functions, but you certainly need to write some of them. If this is a binary search tree, you need some type of data and you need some way to compare two Calc objects using that data. Otherwise, one, how do you know whether to go right or left when searching/inserting, and two, how do you know if you've found something?

dude you should take the time to comment your code, its really quick and goes a long way in speeding up the debug process, what class is this for, intro to C++ or an advanced one or what??? What year of college you in too