How do you implement red black trees in c plus plus?
#include<iostream.h>
#include<conio.h>
class add
{
int a,b,c;
public:
void input()
{
cout<<"\n *** Enter the value of a & b *** ";
cin>>a>>b;
}
void output()
{
c=a+b;
cout<<" The value of "<<a<<"+
"<<b<<" = "<<c;
}
};
void main()
{
add a1;
clrscr();
a1.input();
a1.output();
getch();
}