14,328,676 members

# C / C++ / MFC

 Re: Unwanted radio button click David Crow30-Mar-15 9:24 David Crow 30-Mar-15 9:24
 Re: Unwanted radio button click lor7531-Mar-15 8:47 lor75 31-Mar-15 8:47
 Re: Unwanted radio button click David Crow31-Mar-15 9:23 David Crow 31-Mar-15 9:23
 Re: Unwanted radio button click lor7531-Mar-15 20:42 lor75 31-Mar-15 20:42
 Re: Unwanted radio button click David Crow1-Apr-15 2:14 David Crow 1-Apr-15 2:14
 Binary Tree Recursion Problem Member 1156724330-Mar-15 5:21 Member 11567243 30-Mar-15 5:21
 Re: Binary Tree Recursion Problem David Crow30-Mar-15 6:01 David Crow 30-Mar-15 6:01
 Re: Binary Tree Recursion Problem Member 1156724330-Mar-15 6:09 Member 11567243 30-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.
 Re: Binary Tree Recursion Problem David Crow30-Mar-15 7:30 David Crow 30-Mar-15 7:30
 Re: Binary Tree Recursion Problem Member 1156724330-Mar-15 8:04 Member 11567243 30-Mar-15 8:04
 Re: Binary Tree Recursion Problem David Crow30-Mar-15 9:27 David Crow 30-Mar-15 9:27
 Re: Binary Tree Recursion Problem Member 1156724330-Mar-15 9:31 Member 11567243 30-Mar-15 9:31
 Re: Binary Tree Recursion Problem David Crow30-Mar-15 9:47 David Crow 30-Mar-15 9:47
 Re: Binary Tree Recursion Problem Member 1156724330-Mar-15 10:09 Member 11567243 30-Mar-15 10:09
 Cpu temperature to obtain the sample code in visual c/c++ . Dandy Smile29-Mar-15 9:57 Dandy Smile 29-Mar-15 9:57
 Re: Cpu temperature to obtain the sample code in visual c/c++ . Richard MacCutchan29-Mar-15 21:14 Richard MacCutchan 29-Mar-15 21:14
 Re: Cpu temperature to obtain the sample code in visual c/c++ . David Crow30-Mar-15 3:26 David Crow 30-Mar-15 3:26
 Need to declare a class ( defined in cpp file ) as friend Raj Abhishek27-Mar-15 0:59 Raj Abhishek 27-Mar-15 0:59
 Re: Need to declare a class ( defined in cpp file ) as friend Richard Andrew x6427-Mar-15 8:26 Richard Andrew x64 27-Mar-15 8:26
 Re: Need to declare a class ( defined in cpp file ) as friend Freak3030-Mar-15 1:14 Freak30 30-Mar-15 1:14
 Re: Need to declare a class ( defined in cpp file ) as friend Stefan_Lang8-Apr-15 4:39 Stefan_Lang 8-Apr-15 4:39
 Linkage Problem in MSVC 2008 (wxWidget 3.0 Application) Member 1125835326-Mar-15 20:59 Member 11258353 26-Mar-15 20:59
 Re: Linkage Problem Richard MacCutchan26-Mar-15 21:16 Richard MacCutchan 26-Mar-15 21:16
 Re: Linkage Problem Member 1125835326-Mar-15 23:26 Member 11258353 26-Mar-15 23:26
 Re: Linkage Problem Jochen Arndt27-Mar-15 0:11 Jochen Arndt 27-Mar-15 0:11
 Last Visit: 16-Oct-19 14:03     Last Update: 16-Oct-19 14:03 Refresh « Prev1...309310311312313314315316317318 Next »

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

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