User Profile

Collapse

Profile Sidebar

Collapse
phe2003
phe2003
Last Activity: Feb 25 '08, 04:38 AM
Joined: Feb 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks for your reply. But I did initialize list->count in new.c...


    void CreatList(List *list){
    list = (List*)malloc(s izeof(List));
    if(list==NULL) Error("No memory available.");
    list->head = list->tail = NULL;
    list->count = 0;
    }...
    See more | Go to post

    Leave a comment:


  • Why I got such weird results for a simple linked list test?

    Hi All, I've been testing some extremely simple code about a linked list.

    What I keep doing is actually writing some parts of a linked list and testing them.

    Below are my codes:
    ---------------------------------------------------------------------------

    /* new.h */
    #ifndef NEW_H
    #define NEW_H

    typedef int ListEntry;

    typedef struct listnode{
    ListEntry...
    See more | Go to post
No activity results to display
Show More
Working...