Click here to Skip to main content
15,910,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Get Dimensioned Bitmap from CBitmap? Pin
CPallini7-Dec-06 10:41
mveCPallini7-Dec-06 10:41 
QuestionProgram shutdown problems Pin
#realJSOP7-Dec-06 8:13
professional#realJSOP7-Dec-06 8:13 
AnswerRe: Program shutdown problems Pin
led mike7-Dec-06 8:17
led mike7-Dec-06 8:17 
GeneralRe: Program shutdown problems Pin
#realJSOP7-Dec-06 9:03
professional#realJSOP7-Dec-06 9:03 
GeneralRe: Program shutdown problems Pin
Stephen Hewitt7-Dec-06 11:43
Stephen Hewitt7-Dec-06 11:43 
GeneralRe: Program shutdown problems Pin
led mike7-Dec-06 11:44
led mike7-Dec-06 11:44 
QuestionXLL problem Pin
rodka_raskolnikov7-Dec-06 7:32
rodka_raskolnikov7-Dec-06 7:32 
QuestionAnyone explain me this thing .. I'l b thankful .. [modified] Pin
Pimra7-Dec-06 7:07
Pimra7-Dec-06 7:07 
template < class type >

class binarytree
{
public:
struct treenode
{
int element;
treenode *left, *right;
treenode() : left(0), right(0) {}
treenode(int item, treenode *leftnode=0, treenode *rightnode=0):element(item), left(leftnode), right(rightnode){}
};
protected:
treenode *root;
BOOL insert(treenode *&tree, const type& item);
....
};

template < class type >
BOOL binarytree<type>::insert(treenode* &tree, const type& item)
{
if ( tree==0 )
{
tree=new treenode(item);
return tree ? TRUE : FALSE;
}
else if (item < tree->element )
return insert(tree->left, item);
else
return insert (tree->right, item);
}

Confused | :confused:
what is thing "BOOL" in this code ?? how can a function return TRUE, FALSE or a node of type treenode at same time. If anyone can clear me this thing BOOL, FALSE, TRUE .. I'l b thankful ...


-- modified at 13:18 Thursday 7th December, 2006
AnswerRe: Anyone explain me this thing .. I'l b thankful .. Pin
David Crow7-Dec-06 7:18
David Crow7-Dec-06 7:18 
GeneralRe: Anyone explain me this thing .. I'l b thankful .. Pin
Pimra7-Dec-06 7:31
Pimra7-Dec-06 7:31 
GeneralRe: Anyone explain me this thing .. I'l b thankful .. Pin
Maximilien7-Dec-06 7:41
Maximilien7-Dec-06 7:41 
GeneralRe: Anyone explain me this thing .. I'l b thankful .. Pin
David Crow7-Dec-06 7:42
David Crow7-Dec-06 7:42 
AnswerRe: Anyone explain me this thing .. I'l b thankful .. Pin
Dan McCormick7-Dec-06 8:34
Dan McCormick7-Dec-06 8:34 
GeneralRe: Anyone explain me this thing .. I'l b thankful .. Pin
Steve Echols7-Dec-06 11:32
Steve Echols7-Dec-06 11:32 
Questionwin32 SDK Download. Pin
prodan7-Dec-06 6:34
prodan7-Dec-06 6:34 
AnswerRe: win32 SDK Download. Pin
toxcct7-Dec-06 6:55
toxcct7-Dec-06 6:55 
GeneralRe: win32 SDK Download. Pin
prodan7-Dec-06 7:19
prodan7-Dec-06 7:19 
AnswerRe: win32 SDK Download. Pin
Michael Dunn7-Dec-06 8:05
sitebuilderMichael Dunn7-Dec-06 8:05 
QuestionList Control Item Height [modified] Pin
switang7-Dec-06 6:10
switang7-Dec-06 6:10 
QuestionRe: List Control Item Height Pin
David Crow7-Dec-06 7:24
David Crow7-Dec-06 7:24 
GeneralRe: List Control Item Height [modified] Pin
switang7-Dec-06 7:48
switang7-Dec-06 7:48 
GeneralRe: List Control Item Height Pin
switang7-Dec-06 8:58
switang7-Dec-06 8:58 
GeneralRe: List Control Item Height Pin
switang7-Dec-06 9:17
switang7-Dec-06 9:17 
GeneralRe: List Control Item Height Pin
Steve Echols7-Dec-06 11:36
Steve Echols7-Dec-06 11:36 
GeneralRe: List Control Item Height Pin
switang7-Dec-06 11:39
switang7-Dec-06 11:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.