Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionESTREAMIN carriage return Pin
ForNow24-Apr-10 21:52
ForNow24-Apr-10 21:52 
AnswerRe: ESTREAMIN carriage return Pin
Stuart Dootson25-Apr-10 1:31
professionalStuart Dootson25-Apr-10 1:31 
GeneralRe: ESTREAMIN carriage return Pin
ForNow25-Apr-10 2:17
ForNow25-Apr-10 2:17 
Questionhow to get the filepath which is selected? Pin
kobe893624-Apr-10 20:57
kobe893624-Apr-10 20:57 
AnswerRe: how to get the filepath which is selected? Pin
Code-o-mat24-Apr-10 22:16
Code-o-mat24-Apr-10 22:16 
GeneralRe: how to get the filepath which is selected? Pin
kobe893624-Apr-10 22:41
kobe893624-Apr-10 22:41 
GeneralRe: how to get the filepath which is selected? Pin
Code-o-mat24-Apr-10 23:05
Code-o-mat24-Apr-10 23:05 
GeneralRe: how to get the filepath which is selected? Pin
kobe893624-Apr-10 23:47
kobe893624-Apr-10 23:47 
GeneralRe: how to get the filepath which is selected? Pin
Code-o-mat25-Apr-10 0:07
Code-o-mat25-Apr-10 0:07 
GeneralRe: how to get the filepath which is selected? Pin
kobe893625-Apr-10 1:07
kobe893625-Apr-10 1:07 
GeneralRe: how to get the filepath which is selected? Pin
Code-o-mat25-Apr-10 1:23
Code-o-mat25-Apr-10 1:23 
QuestionOpenGL help! Pin
epinez24-Apr-10 16:48
epinez24-Apr-10 16:48 
AnswerRe: OpenGL help! Pin
Tim Craig24-Apr-10 16:58
Tim Craig24-Apr-10 16:58 
GeneralRe: OpenGL help! Pin
epinez24-Apr-10 17:04
epinez24-Apr-10 17:04 
GeneralRe: OpenGL help! Pin
Tim Craig24-Apr-10 19:37
Tim Craig24-Apr-10 19:37 
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 
I'm feeling like you've missed my problem entirely. My problem is that currNode == NULL and currNode != NULL don't work, even if I don't overload operator== (and once that's overloaded, doing operator!= should be easy). I attempted to overload it so that I could get it to work, but I have been unsuccessful so far. So after overloading wasn't working for me, I tried testing a member variable within a node that will allow me to enter/skip the while loop or if statement, and that's how my code currently stands.

If it might help, here's the book's pseudo-code:
TREE-INSERT(T,z)
 1: y = nil
 2: x = T.root
 3: while x != nil
 4:    y = x
 5:    if z.key < x.key
 6:       x = x.left
 7:    else x = x.right
 8: z.p  = y
 9: if y == nil
10:    T.root = z
11: elseif z.key < y.key
12:    y.left = z
13: else y.right = z

(Introduction to Algorithms, 3rd edition, p 294)
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 
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 

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.