Click here to Skip to main content
15,893,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: linked list adding operation with two structure type Pin
Andrew Phillips30-Apr-11 5:17
Andrew Phillips30-Apr-11 5:17 
GeneralRe: linked list adding operation with two structure type Pin
quartaela30-Apr-11 5:35
quartaela30-Apr-11 5:35 
GeneralRe: linked list adding operation with two structure type Pin
Andrew Phillips30-Apr-11 5:59
Andrew Phillips30-Apr-11 5:59 
AnswerRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 6:10
sitebuilderLuc Pattyn30-Apr-11 6:10 
GeneralRe: linked list adding operation with two structure type Pin
quartaela30-Apr-11 8:03
quartaela30-Apr-11 8:03 
i opened another project to implement the list with LIST and NODE structure. but i am facing with an error. i couldn't fix it.
the error is;
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

and the error is in create_list function which is;

LIST* create_list(void)
 {

    LIST* list;

    list = (LIST*) malloc(sizeof(LIST));

    if (!list) {

        printf("ERROR NOT ENOUGH MEMORY!!!\n");
        exit(100);
    }

    else {

        list->count = 0;
        list->current = NULL;
        list->head = NULL;
        list->tail = NULL;

    }

    return list;

}


and this is the main function;
LIST* create_list(void);

int main( void ) {

    LIST* list;

    list = create_list();

    build_list(list);

    print_list(list);

    return 0;
}

GeneralRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 8:10
sitebuilderLuc Pattyn30-Apr-11 8:10 
GeneralRe: linked list adding operation with two structure type Pin
quartaela30-Apr-11 8:16
quartaela30-Apr-11 8:16 
GeneralRe: linked list adding operation with two structure type Pin
quartaela30-Apr-11 8:20
quartaela30-Apr-11 8:20 
GeneralRe: linked list adding operation with two structure type Pin
Luc Pattyn30-Apr-11 8:32
sitebuilderLuc Pattyn30-Apr-11 8:32 
QuestionProblem in Callback function in Client Application [modified] Pin
manoharbalu30-Apr-11 1:27
manoharbalu30-Apr-11 1:27 
AnswerRe: Problem in Callback function in Client Application Pin
Hans Dietrich30-Apr-11 4:27
mentorHans Dietrich30-Apr-11 4:27 
QuestionIs there any way to SendMessage to a Button control Pin
lamparded30-Apr-11 1:27
lamparded30-Apr-11 1:27 
AnswerRe: Is there any way to SendMessage to a Button control Pin
«_Superman_»30-Apr-11 2:12
professional«_Superman_»30-Apr-11 2:12 
GeneralRe: Is there any way to SendMessage to a Button control Pin
lamparded30-Apr-11 3:27
lamparded30-Apr-11 3:27 
AnswerRe: Is there any way to SendMessage to a Button control Pin
Hans Dietrich30-Apr-11 4:18
mentorHans Dietrich30-Apr-11 4:18 
GeneralRe: Is there any way to SendMessage to a Button control Pin
Richard MacCutchan30-Apr-11 5:33
mveRichard MacCutchan30-Apr-11 5:33 
GeneralRe: Is there any way to SendMessage to a Button control Pin
lamparded30-Apr-11 6:18
lamparded30-Apr-11 6:18 
GeneralRe: Is there any way to SendMessage to a Button control Pin
Richard MacCutchan30-Apr-11 6:51
mveRichard MacCutchan30-Apr-11 6:51 
GeneralRe: Is there any way to SendMessage to a Button control Pin
lamparded30-Apr-11 13:31
lamparded30-Apr-11 13:31 
GeneralRe: Is there any way to SendMessage to a Button control Pin
barneyman30-Apr-11 16:40
barneyman30-Apr-11 16:40 
GeneralRe: Is there any way to SendMessage to a Button control Pin
Richard MacCutchan30-Apr-11 21:34
mveRichard MacCutchan30-Apr-11 21:34 
GeneralRe: Is there any way to SendMessage to a Button control Pin
jeff61-May-11 12:01
jeff61-May-11 12:01 

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.