Hi, im using visual c++ and I am getting run time errors whenever i try this problem.
What i am trying to do it create an array of linked lists. So for example in array[x][y] I would like to store the node at the head of the list.
Could someone advise me how to declare this array and how to use it / pass it to functions?
Thank you
- this is a piece of code im using now. This function takes the pointerarry, an x-y coordination and number to put in the linked list.
Code:void createlist(int x, int y, int value, nodeptr *pointerarray[9][9]){ nodeptr hdList; hdList = new node; hdList->number = value; hdList->next = NULL; pointerarray[x][y] = &hdList; }



LinkBack URL
About LinkBacks



