Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TBLRD instruction PIC18 Pin
CPallini3-Jul-14 2:51
mveCPallini3-Jul-14 2:51 
GeneralRe: TBLRD instruction PIC18 Pin
__John_3-Jul-14 4:04
__John_3-Jul-14 4:04 
GeneralRe: TBLRD instruction PIC18 Pin
CPallini3-Jul-14 4:33
mveCPallini3-Jul-14 4:33 
AnswerRe: TBLRD instruction PIC18 Pin
jeron13-Jul-14 4:14
jeron13-Jul-14 4:14 
QuestionLinked List With Two Three Tree Pin
Hamza Bin Amin30-Jun-14 11:06
Hamza Bin Amin30-Jun-14 11:06 
QuestionRe: Linked List With Two Three Tree Pin
David Crow2-Jul-14 3:47
David Crow2-Jul-14 3:47 
GeneralRe: Linked List With Two Three Tree Pin
CPallini2-Jul-14 22:58
mveCPallini2-Jul-14 22:58 
AnswerRe: Linked List With Two Three Tree Pin
Stefan_Lang3-Jul-14 23:56
Stefan_Lang3-Jul-14 23:56 
1. the line
C++
tree1->findOWN(new Student("",12105092))->merge(s1);

creates a memory leak, as the function argument is created on the heap, but never deleted.

2. your function CTree<t>::TCompare compares objects of type Student using
C++
operator<(const Student&, const Student&)
Did you define that operator? If not, the result of these comparisons are undefined. If you did, the error may be within the code of that operator definition.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralMessage Closed Pin
30-Jun-14 8:40
Member 1091480330-Jun-14 8:40 
GeneralRe: STAR TREK PROJECT Pin
David Crow30-Jun-14 9:22
David Crow30-Jun-14 9:22 
GeneralRe: STAR TREK PROJECT Pin
jeron130-Jun-14 9:53
jeron130-Jun-14 9:53 
GeneralRe: STAR TREK PROJECT Pin
Richard Andrew x6430-Jun-14 11:20
professionalRichard Andrew x6430-Jun-14 11:20 
GeneralRe: STAR TREK PROJECT Pin
Wes Aday30-Jun-14 12:43
professionalWes Aday30-Jun-14 12:43 
GeneralRe: STAR TREK PROJECT Pin
Richard MacCutchan30-Jun-14 15:51
mveRichard MacCutchan30-Jun-14 15:51 
QuestionUsing a Self Developed Dll in VC++ Pin
Django_Untaken30-Jun-14 2:20
Django_Untaken30-Jun-14 2:20 
AnswerRe: Using a Self Developed Dll in VC++ Pin
Richard MacCutchan30-Jun-14 4:58
mveRichard MacCutchan30-Jun-14 4:58 
AnswerRe: Using a Self Developed Dll in VC++ Pin
Albert Holguin1-Jul-14 9:13
professionalAlbert Holguin1-Jul-14 9:13 
QuestionCross compiling using Eclipse C/C++ CDT Pin
Vijay Rajanna29-Jun-14 16:25
Vijay Rajanna29-Jun-14 16:25 
AnswerRe: Cross compiling using Eclipse C/C++ CDT Pin
CPallini29-Jun-14 21:52
mveCPallini29-Jun-14 21:52 
QuestionWhen to delete a pointer (C++)... Pin
DanielSheets26-Jun-14 5:24
DanielSheets26-Jun-14 5:24 
AnswerRe: When to delete a pointer (C++)... Pin
Chris Losinger26-Jun-14 5:32
professionalChris Losinger26-Jun-14 5:32 
AnswerRe: When to delete a pointer (C++)... Pin
Orjan Westin26-Jun-14 5:47
professionalOrjan Westin26-Jun-14 5:47 
AnswerRe: When to delete a pointer (C++)... Pin
David Crow26-Jun-14 7:21
David Crow26-Jun-14 7:21 
AnswerRe: When to delete a pointer (C++)... Pin
Freak3027-Jun-14 3:31
Freak3027-Jun-14 3:31 
GeneralRe: When to delete a pointer (C++)... Pin
Stefan_Lang30-Jun-14 22:53
Stefan_Lang30-Jun-14 22:53 

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.