Search:

Type: Posts; User: rasheemo

Search: Search took 0.00 seconds.

  1. jesus christ. i hate myself. thanks so much.

    jesus christ. i hate myself.

    thanks so much.
  2. VERY strange problem. My program hangs unless I add a test variable and never use it.

    the input of the function is a binary number, for example "10110" is the one being passed as i test this. The function is supposed to convert it to a hexadecimal. anyway, it's not finished, but this...
  3. oh wow. that was it. thank you so much.

    oh wow. that was it. thank you so much.
  4. ok, i figured out how to build the linked list....

    ok, i figured out how to build the linked list. but now my program freezes when i try to copy a string to string inside of the struct.

    here is the latest code:


    #include <stdio.h>
    #include...
  5. so can't i just send '&start' to pass the pointer...

    so can't i just send '&start' to pass the pointer itself? but the compiler won't allow that for some reason.
  6. i'm passing the first node of the list, aren't I?...

    i'm passing the first node of the list, aren't I?

    It's null the first time, so 'append' sets it equal to temp.
    the second time around, beginnging/start has a value right? am i passing the...
  7. ok, i can't figure this out at all. This is what...

    ok, i can't figure this out at all. This is what i THINK is happening with my program:


    curr = head;

    I assign curr to the very first node in the linked list.


    while(curr){
    ...
  8. ok, so don't i have to first find the last node...

    ok, so don't i have to first find the last node that has a NULL 'next'? and once i get there i set the next of that node to curr and then malloc? How do i define a new node without using a variable...
  9. i set curr to head and then i traverse until i...

    i set curr to head and then i traverse until i get to a null, and then i malloc. isn't that right?
  10. hmm, maybe i dont even know what a proper linked...

    hmm, maybe i dont even know what a proper linked list is.

    i'm making head the first member of the linked list, then allocating memory for curent, which i stick to the end of the list, in the first...
  11. VERY simple problem, can't figure it out for the life of me. :[

    Ok, so all i'm trying to do is make a linked list of dictionary entries, and for some reason allocating the second or third linked list kills my program. I have no idea why. Here is the code:
    ...
Results 1 to 11 of 11