Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenGL help! Pin
Cedric Moonen25-Apr-10 1:15
Cedric Moonen25-Apr-10 1:15 
AnswerRe: OpenGL help! Pin
Saurabh.Garg24-Apr-10 17:50
Saurabh.Garg24-Apr-10 17:50 
QuestionOverloading operator== for custom class and NULL? Pin
yashachan24-Apr-10 12:59
yashachan24-Apr-10 12:59 
AnswerRe: Overloading operator== for custom class and NULL? Pin
Saurabh.Garg24-Apr-10 15:48
Saurabh.Garg24-Apr-10 15:48 
GeneralRe: Overloading operator== for custom class and NULL? Pin
yashachan25-Apr-10 1:56
yashachan25-Apr-10 1:56 
GeneralRe: Overloading operator== for custom class and NULL? Pin
Saurabh.Garg25-Apr-10 2:03
Saurabh.Garg25-Apr-10 2:03 
GeneralRe: Overloading operator== for custom class and NULL? Pin
Saurabh.Garg25-Apr-10 2:57
Saurabh.Garg25-Apr-10 2:57 
GeneralRe: Overloading operator== for custom class and NULL? Pin
yashachan25-Apr-10 5:16
yashachan25-Apr-10 5:16 
The way I've been taught binary search trees is that, by definition, the root node is set to NULL when the tree is created.

I was misunderstanding the difference between setting a node to NULL, and setting each of the node's members to NULL. It's been a rough week. Blush | :O

And, yes, the book is indeed assuming that all nodes are initialized to NULL.

I've gotten rid of createNewNode() because it really wasn't doing much for me (I thought it was included earlier, but I guess not).

I was a bit snotty in my previous reply, and I apologize for that. What you've said has helped me think more carefully about what I'm actually doing with the code. (And I appear to have insertion completely working now!) Thank you for the help!
GeneralRe: Overloading operator== for custom class and NULL? Pin
Saurabh.Garg25-Apr-10 5:34
Saurabh.Garg25-Apr-10 5:34 
QuestionAdding items to the title bar Pin
hans.sch24-Apr-10 8:18
hans.sch24-Apr-10 8:18 
AnswerRe: Adding items to the title bar Pin
KingsGambit24-Apr-10 8:36
KingsGambit24-Apr-10 8:36 
GeneralRe: Adding items to the title bar [modified] Pin
hans.sch24-Apr-10 9:03
hans.sch24-Apr-10 9:03 
GeneralRe: Adding items to the title bar Pin
Emilio Garavaglia24-Apr-10 10:40
Emilio Garavaglia24-Apr-10 10:40 
GeneralRe: Adding items to the title bar Pin
hans.sch24-Apr-10 15:10
hans.sch24-Apr-10 15:10 
AnswerRe: Adding items to the title bar (solved) [modified] Pin
hans.sch17-Jun-10 21:30
hans.sch17-Jun-10 21:30 
QuestionHow to avoid Buffer Overrun?! Pin
Fareed Rizkalla24-Apr-10 7:38
Fareed Rizkalla24-Apr-10 7:38 
AnswerRe: How to avoid Buffer Overrun?! Pin
Rajesh R Subramanian24-Apr-10 7:41
professionalRajesh R Subramanian24-Apr-10 7:41 
AnswerRe: How to avoid Buffer Overrun?! Pin
Moak24-Apr-10 9:06
Moak24-Apr-10 9:06 
AnswerRe: How to avoid Buffer Overrun?! Pin
Saurabh.Garg24-Apr-10 17:55
Saurabh.Garg24-Apr-10 17:55 
AnswerRe: How to avoid Buffer Overrun?! Pin
RedZombie12527-Apr-10 16:45
RedZombie12527-Apr-10 16:45 
QuestionCan I get a FILE* from a HANDLE? Pin
sashoalm24-Apr-10 5:59
sashoalm24-Apr-10 5:59 
AnswerRe: Can I get a FILE* from a HANDLE? Pin
sashoalm24-Apr-10 6:16
sashoalm24-Apr-10 6:16 
AnswerRe: Can I get a FILE* from a HANDLE? Pin
«_Superman_»24-Apr-10 8:04
professional«_Superman_»24-Apr-10 8:04 
QuestionWin32's HttpSendRequest : ERROR_INTERNET_INCORRECT_HANDLE_STATE Pin
VictorSotnikov24-Apr-10 4:12
VictorSotnikov24-Apr-10 4:12 
AnswerRe: Win32's HttpSendRequest : ERROR_INTERNET_INCORRECT_HANDLE_STATE Pin
Luc Pattyn24-Apr-10 4:19
sitebuilderLuc Pattyn24-Apr-10 4:19 

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.