Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i rotate a radio Pin
Hamid_RT15-Dec-06 7:08
Hamid_RT15-Dec-06 7:08 
QuestionHow to get the object or resource id of dialog controls? Pin
Super Hornet3-Dec-06 3:00
Super Hornet3-Dec-06 3:00 
AnswerRe: How to get the object or resource id of dialog controls? Pin
CPallini3-Dec-06 6:45
mveCPallini3-Dec-06 6:45 
GeneralRe: How to get the object or resource id of dialog controls? Pin
Super Hornet3-Dec-06 7:03
Super Hornet3-Dec-06 7:03 
GeneralRe: How to get the object or resource id of dialog controls? Pin
ThatsAlok3-Dec-06 18:36
ThatsAlok3-Dec-06 18:36 
GeneralRe: How to get the object or resource id of dialog controls? Pin
CPallini4-Dec-06 8:04
mveCPallini4-Dec-06 8:04 
GeneralRe: How to get the object or resource id of dialog controls? Pin
ThatsAlok4-Dec-06 18:11
ThatsAlok4-Dec-06 18:11 
QuestionAnyone can help with writing recursive functionthat determines the level in the BST? Pin
Rooro3-Dec-06 2:38
Rooro3-Dec-06 2:38 
Hello everyone


I want to learn how can I do this :

write a recursive function member level() for class template BST that determines the level in the BST at which a specified item is located .The root of the BST is at level 0 , its children are at level 1 , and so on

and this is the code for //--- Definition of search()

Code:

template <typename DataType>
bool BST<DataType>::search(const DataType & item) const
{
BST<DataType>::BinNodePointer locptr = myRoot;
bool found = false;
for (;;)
{
if (found || locptr == 0) break;
if (item < locptr->data) // descend left
locptr = locptr->left;
else if (locptr->data < item) // descend right
locptr = locptr->right;
else // item found
found = true;
}
return found;
}

Rooro
QuestionCToolTipCtrl problem Pin
YaronNir3-Dec-06 1:57
YaronNir3-Dec-06 1:57 
QuestionSetFont Pin
Hadi Dayvary3-Dec-06 1:50
professionalHadi Dayvary3-Dec-06 1:50 
AnswerRe: SetFont Pin
CPallini3-Dec-06 6:40
mveCPallini3-Dec-06 6:40 
GeneralRe: SetFont [modified] Pin
Hadi Dayvary3-Dec-06 18:09
professionalHadi Dayvary3-Dec-06 18:09 
GeneralRe: SetFont Pin
ThatsAlok4-Dec-06 21:44
ThatsAlok4-Dec-06 21:44 
Questionproblem with propertyPage Pin
zizzzz3-Dec-06 1:01
zizzzz3-Dec-06 1:01 
QuestionHow to change int to COleDateTime? Pin
hanlei00000000092-Dec-06 19:51
hanlei00000000092-Dec-06 19:51 
AnswerRe: How to change int to COleDateTime? Pin
Joe Woodbury2-Dec-06 23:11
professionalJoe Woodbury2-Dec-06 23:11 
Generalthanks Pin
hanlei00000000095-Dec-06 17:25
hanlei00000000095-Dec-06 17:25 
AnswerRe: How to change int to COleDateTime? Pin
ThatsAlok3-Dec-06 19:24
ThatsAlok3-Dec-06 19:24 
Generalthanks Pin
hanlei00000000095-Dec-06 17:24
hanlei00000000095-Dec-06 17:24 
QuestionHex addition and Hex-to-ASCII string conversion with VC++ Pin
pkyiu2-Dec-06 17:08
pkyiu2-Dec-06 17:08 
QuestionRe: Hex addition and Hex-to-ASCII string conversion with VC++ Pin
George L. Jackson3-Dec-06 3:54
George L. Jackson3-Dec-06 3:54 
AnswerRe: Hex addition and Hex-to-ASCII string conversion with VC++ Pin
pkyiu7-Dec-06 16:36
pkyiu7-Dec-06 16:36 
GeneralRe: Hex addition and Hex-to-ASCII string conversion with VC++ Pin
George L. Jackson7-Dec-06 23:57
George L. Jackson7-Dec-06 23:57 
QuestionProblem with CString length [modified] Pin
Milos Djokovic2-Dec-06 14:23
Milos Djokovic2-Dec-06 14:23 
AnswerRe: Problem with CString length Pin
David Crow2-Dec-06 15:23
David Crow2-Dec-06 15:23 

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.