Click here to Skip to main content
14,332,555 members

C / C++ / MFC

 
AnswerRe: Unwanted radio button click Pin
David Crow30-Mar-15 9:24
memberDavid Crow30-Mar-15 9:24 
GeneralRe: Unwanted radio button click Pin
lor7531-Mar-15 8:47
memberlor7531-Mar-15 8:47 
GeneralRe: Unwanted radio button click Pin
David Crow31-Mar-15 9:23
memberDavid Crow31-Mar-15 9:23 
GeneralRe: Unwanted radio button click Pin
lor7531-Mar-15 20:42
memberlor7531-Mar-15 20:42 
GeneralRe: Unwanted radio button click Pin
David Crow1-Apr-15 2:14
memberDavid Crow1-Apr-15 2:14 
QuestionBinary Tree Recursion Problem Pin
Member 1156724330-Mar-15 5:21
memberMember 1156724330-Mar-15 5:21 
GeneralRe: Binary Tree Recursion Problem Pin
David Crow30-Mar-15 6:01
memberDavid Crow30-Mar-15 6:01 
SuggestionRe: Binary Tree Recursion Problem Pin
Member 1156724330-Mar-15 6:09
memberMember 1156724330-Mar-15 6:09 
I will paste the code. But they are working fine when they are called individually.
int minValue(TreeNode * root) {
    TreeNode * current = root;
    if (current == NULL) return -1;
    else {
        while (current->left != NULL)
            current = current->left;
        return current->num;
    }
}

int maxValue(TreeNode * root) {
    TreeNode * current = root;
    if (current == NULL)
        return -1;
    else
     {
        while (current->right != NULL)
            current = current->right;
        return current->num;
     }
}


And they are called as posted above. One more time, when called individually they work fine.
QuestionRe: Binary Tree Recursion Problem Pin
David Crow30-Mar-15 7:30
memberDavid Crow30-Mar-15 7:30 
AnswerRe: Binary Tree Recursion Problem Pin
Member 1156724330-Mar-15 8:04
memberMember 1156724330-Mar-15 8:04 
QuestionRe: Binary Tree Recursion Problem Pin
David Crow30-Mar-15 9:27
memberDavid Crow30-Mar-15 9:27 
AnswerRe: Binary Tree Recursion Problem Pin
Member 1156724330-Mar-15 9:31
memberMember 1156724330-Mar-15 9:31 
AnswerRe: Binary Tree Recursion Problem Pin
David Crow30-Mar-15 9:47
memberDavid Crow30-Mar-15 9:47 
GeneralRe: Binary Tree Recursion Problem Pin
Member 1156724330-Mar-15 10:09
memberMember 1156724330-Mar-15 10:09 
QuestionCpu temperature to obtain the sample code in visual c/c++ . Pin
Dandy Smile29-Mar-15 9:57
memberDandy Smile29-Mar-15 9:57 
AnswerRe: Cpu temperature to obtain the sample code in visual c/c++ . Pin
Richard MacCutchan29-Mar-15 21:14
protectorRichard MacCutchan29-Mar-15 21:14 
GeneralRe: Cpu temperature to obtain the sample code in visual c/c++ . Pin
David Crow30-Mar-15 3:26
memberDavid Crow30-Mar-15 3:26 
QuestionNeed to declare a class ( defined in cpp file ) as friend Pin
Raj Abhishek27-Mar-15 0:59
memberRaj Abhishek27-Mar-15 0:59 
AnswerRe: Need to declare a class ( defined in cpp file ) as friend Pin
Richard Andrew x6427-Mar-15 8:26
professionalRichard Andrew x6427-Mar-15 8:26 
AnswerRe: Need to declare a class ( defined in cpp file ) as friend Pin
Freak3030-Mar-15 1:14
memberFreak3030-Mar-15 1:14 
AnswerRe: Need to declare a class ( defined in cpp file ) as friend Pin
Stefan_Lang8-Apr-15 4:39
memberStefan_Lang8-Apr-15 4:39 
QuestionLinkage Problem in MSVC 2008 (wxWidget 3.0 Application) Pin
Member 1125835326-Mar-15 20:59
memberMember 1125835326-Mar-15 20:59 
AnswerRe: Linkage Problem Pin
Richard MacCutchan26-Mar-15 21:16
protectorRichard MacCutchan26-Mar-15 21:16 
GeneralRe: Linkage Problem Pin
Member 1125835326-Mar-15 23:26
memberMember 1125835326-Mar-15 23:26 
GeneralRe: Linkage Problem Pin
Jochen Arndt27-Mar-15 0:11
mveJochen Arndt27-Mar-15 0:11 

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.