Click here to Skip to main content
15,905,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error message Pin
Cyclone_S3-May-11 11:21
Cyclone_S3-May-11 11:21 
QuestionMFC: ownderdrawn menu, how can I change the default menu border? Pin
Erik1-May-11 19:53
Erik1-May-11 19:53 
AnswerRe: MFC: ownderdrawn menu, how can I change the default menu border? Pin
Hans Dietrich1-May-11 20:14
mentorHans Dietrich1-May-11 20:14 
QuestionPrinting out characters from a file Pin
Francis Paran1-May-11 14:14
Francis Paran1-May-11 14:14 
QuestionRe: Printing out characters from a file Pin
David Crow1-May-11 14:55
David Crow1-May-11 14:55 
AnswerRe: Printing out characters from a file Pin
Francis Paran2-May-11 9:45
Francis Paran2-May-11 9:45 
Questionhow to convert images through C++ Pin
aesthetic.crazy1-May-11 7:21
aesthetic.crazy1-May-11 7:21 
AnswerRe: how to convert images through C++ Pin
enhzflep1-May-11 7:35
enhzflep1-May-11 7:35 
GeneralRe: how to convert images through C++ Pin
Rajesh R Subramanian1-May-11 9:15
professionalRajesh R Subramanian1-May-11 9:15 
AnswerRe: how to convert images through C++ Pin
jeff61-May-11 11:59
jeff61-May-11 11:59 
AnswerRe: how to convert images through C++ Pin
«_Superman_»1-May-11 16:46
professional«_Superman_»1-May-11 16:46 
AnswerRe: how to convert images through C++ Pin
Cool_Dev1-May-11 19:15
Cool_Dev1-May-11 19:15 
AnswerRe: how to convert images through C++ Pin
Chris Losinger2-May-11 15:05
professionalChris Losinger2-May-11 15:05 
Question'x' bit OS Pin
Pranit Kothari1-May-11 2:21
Pranit Kothari1-May-11 2:21 
AnswerRe: 'x' bit OS PinPopular
«_Superman_»1-May-11 3:00
professional«_Superman_»1-May-11 3:00 
GeneralRe: 'x' bit OS Pin
Pranit Kothari1-May-11 3:14
Pranit Kothari1-May-11 3:14 
GeneralRe: 'x' bit OS Pin
Pranit Kothari10-May-11 22:40
Pranit Kothari10-May-11 22:40 
GeneralRe: 'x' bit OS Pin
«_Superman_»10-May-11 22:59
professional«_Superman_»10-May-11 22:59 
Questionproblem Pin
hmaz462930-Apr-11 23:49
hmaz462930-Apr-11 23:49 
AnswerRe: problem Pin
Rajesh R Subramanian1-May-11 0:01
professionalRajesh R Subramanian1-May-11 0:01 
AnswerRe: problem Pin
«_Superman_»1-May-11 2:16
professional«_Superman_»1-May-11 2:16 
Questionlinked list adding operation with two structure type Pin
quartaela30-Apr-11 3:42
quartaela30-Apr-11 3:42 
AnswerRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 4:22
sitebuilderLuc Pattyn30-Apr-11 4:22 
GeneralRe: linked list adding operation with two structure type Pin
quartaela30-Apr-11 5:13
quartaela30-Apr-11 5:13 
AnswerRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 5:36
sitebuilderLuc Pattyn30-Apr-11 5:36 
I did not tell you to drop the LIST structure; if you want new nodes added at the tail, having a tail pointer is the obvious way of doing it, as it is much faster than searching for the last node each time.

And your original code would never reach the print statement as it bombs when you use the null reference that is the resulting of spinning the while loop. So either use the tail pointer and drop the while loop, or fix the while loop.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

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.