Click here to Skip to main content
15,887,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to release space of link nodes recursively? Pin
Stuart Dootson17-Oct-09 15:10
professionalStuart Dootson17-Oct-09 15:10 
GeneralRe: how to release space of link nodes recursively? Pin
jianzhuhuai18-Oct-09 23:10
jianzhuhuai18-Oct-09 23:10 
GeneralRe: how to release space of link nodes recursively? Pin
Stuart Dootson19-Oct-09 0:32
professionalStuart Dootson19-Oct-09 0:32 
GeneralRe: how to release space of link nodes recursively? Pin
jianzhuhuai20-Oct-09 0:43
jianzhuhuai20-Oct-09 0:43 
QuestionHelp with a Function related with Circular Linked List Pin
Naumf17-Oct-09 12:30
Naumf17-Oct-09 12:30 
AnswerRe: Help with a Function related with Circular Linked List Pin
«_Superman_»17-Oct-09 13:08
professional«_Superman_»17-Oct-09 13:08 
GeneralRe: Help with a Function related with Circular Linked List Pin
Naumf18-Oct-09 3:00
Naumf18-Oct-09 3:00 
QuestionRe: Help with a Function related with Circular Linked List Pin
David Crow17-Oct-09 16:53
David Crow17-Oct-09 16:53 
Naumf wrote:
node *create_list();
void print_list(node *);
int sum_of_even(node *);


Move main() below all the other functions and these prototypes can be removed.

Naumf wrote:
while(x!=-1)
{
p=new node;
p->link=q;
p->info=x;
q=p;
cin>>x;
}


This while() loop is odd. How about:

while (x > 0)	
{	
    ...	
    x--;
}
Since print_list() goes through the list okay, why not model sum_of_even() after it?

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


AnswerRe: Help with a Function related with Circular Linked List Pin
Naumf18-Oct-09 3:04
Naumf18-Oct-09 3:04 
AnswerRe: Help with a Function related with Circular Linked List Pin
David Crow18-Oct-09 13:03
David Crow18-Oct-09 13:03 
GeneralRe: Help with a Function related with Circular Linked List Pin
Naumf19-Oct-09 8:05
Naumf19-Oct-09 8:05 
GeneralRe: Help with a Function related with Circular Linked List Pin
David Crow19-Oct-09 8:09
David Crow19-Oct-09 8:09 
GeneralRe: Help with a Function related with Circular Linked List Pin
Naumf19-Oct-09 8:15
Naumf19-Oct-09 8:15 
QuestionAccessing synch object in DirectDraw Pin
Code-o-mat17-Oct-09 12:16
Code-o-mat17-Oct-09 12:16 
Questionhow to draw in a dialog's client area, but from an event ocurred in another dialog? Pin
timbk17-Oct-09 10:53
timbk17-Oct-09 10:53 
AnswerRe: how to draw in a dialog's client area, but from an event ocurred in another dialog? Pin
Hans Dietrich17-Oct-09 18:45
mentorHans Dietrich17-Oct-09 18:45 
GeneralRe: how to draw in a dialog's client area, but from an event ocurred in another dialog? Pin
timbk18-Oct-09 5:46
timbk18-Oct-09 5:46 
Questionalphanumaric and numeric checking Pin
Omegaclass17-Oct-09 10:22
Omegaclass17-Oct-09 10:22 
AnswerRe: alphanumaric and numeric checking Pin
«_Superman_»17-Oct-09 11:38
professional«_Superman_»17-Oct-09 11:38 
GeneralRe: alphanumaric and numeric checking Pin
Omegaclass17-Oct-09 13:23
Omegaclass17-Oct-09 13:23 
Questiondialog based MFC multithreaded server Pin
Manmohan2917-Oct-09 7:17
Manmohan2917-Oct-09 7:17 
AnswerRe: dialog based MFC multithreaded server Pin
Moak17-Oct-09 8:21
Moak17-Oct-09 8:21 
GeneralRe: dialog based MFC multithreaded server Pin
Manmohan2917-Oct-09 9:12
Manmohan2917-Oct-09 9:12 
GeneralRe: dialog based MFC multithreaded server Pin
Manmohan2917-Oct-09 9:22
Manmohan2917-Oct-09 9:22 
GeneralRe: dialog based MFC multithreaded server Pin
Rajesh R Subramanian17-Oct-09 10:28
professionalRajesh R Subramanian17-Oct-09 10:28 

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.