sorry I misunderstood, here the functions got called
(gdb) bt
#0 0x0000000000401dcd in insertBeforeFirst (L=0x604630, data=1) at List.c:208
#1 0x000000000040124c in DFSVisit (G=0x604490,...
Type: Posts; User: minidragon
sorry I misunderstood, here the functions got called
(gdb) bt
#0 0x0000000000401dcd in insertBeforeFirst (L=0x604630, data=1) at List.c:208
#1 0x000000000040124c in DFSVisit (G=0x604490,...
Here are the steps I did for gdb
(gdb) run in out
Starting program: /afs/cats.ucsc.edu/users/m/ltrinh1/private/cs101/pa5/FindComponents in out
Breakpoint 1, insertBeforeFirst...
it's the same problem, gdb is pointing to the same line
yes I initialized it. is this correct?
NodeRef newNode(int node_data){
NodeRef N = malloc(sizeof(Node));
N->data= node_data;
N->next= NULL;
N->prev= NULL;
return (N);
I just started learning how, but I don't know how to fix this.
so what am I suppose to do to fix the bug?
Hello, I been trying to debug my program for hours, but there still one small bug left that I need help. Please anyone can give me some advice/tip, it would be very much appreciated.
I used gdb...
but, I need the insertion sort to be in this format though >.<
void inssort (void *base, size_t nelem, size_t size,
int (*compar) (const void *, const void *));
The parameters...
Can someone please convert this Java into C code? I need help >.<
static <elem_t extends Comparable <? super elem_t>>
void insertion_sort (elem_t[]array, int nelem) {
for(int...