Search:

Type: Posts; User: Panserbjorn

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,653

    1. Fixed that now, thanks. 2. I cleaned this up....

    1. Fixed that now, thanks.
    2. I cleaned this up. It had been that way because of how some of my functions worked, but I see now that they no longer need to be global.
    3. This is an assignment for a...
  2. Replies
    3
    Views
    1,653

    Can't figure out why code is hanging up

    I know I've been asking 1000 questions and most of them are simple answers, but I've tested this one extensively and still cannot figure out what the deal is (cue still simple answer).

    My code...
  3. Replies
    2
    Views
    1,518

    Thanks, worked like a charm.

    Thanks, worked like a charm.
  4. Replies
    2
    Views
    1,518

    Adding data from linked list to string

    I've searched for this, but I can't find an explanation anywhere.

    I have a linked list, and a node currentPtr.

    currentPtr has a variable in it "data" which is a string.

    How do I add that...
  5. Replies
    6
    Views
    3,054

    Awesome!! You just helped me fix the biggest...

    Awesome!! You just helped me fix the biggest problem I had! Now, a new issue is coming up, though. Now the last item input into the linked list doesn't show up in the list. In the test file,...
  6. Replies
    6
    Views
    3,054

    Woops, tried strcpy(newPtr->data,value) ...

    Woops, tried

    strcpy(newPtr->data,value)

    like it should be. Still get segmentation fault.
  7. Replies
    6
    Views
    3,054

    I changed that line to ...

    I changed that line to

    strcpy(value,newPtr->data);

    and now I just get a segmentation fault. I didn't think that was an issue, since when I print the linked list, it shows strings at each node.....
  8. Replies
    6
    Views
    3,054

    Memory allocation in linked lists

    I'm getting a classic example of printing out a linked list but all nodes contain the value of the last inserted node. I've seen some information about this , but I still cannot figure out how to...
  9. Replies
    7
    Views
    1,392

    I see your point here. I should've checked to see...

    I see your point here. I should've checked to see if something existed before I wrote my own.



    Yep, it was right in my code, but I messed it up when trying to get rid of my debugging code.

    ...
  10. Replies
    7
    Views
    1,392

    Heh.. you bet.

    Heh.. you bet.
  11. Replies
    7
    Views
    1,392

    Well, I figured out why I was getting odd results...

    Well, I figured out why I was getting odd results for the linked list.. the printList command was printing %c instead of %s. However, new problem. The test file I'm using starts with this:


    When...
  12. Replies
    7
    Views
    1,392

    Need help with linked lists

    I'm working on a program to justify a block of text. The step I'm stuck on now (haven't gotten to the justification part), is reading in the text file into a linked list of strings. I'm 99% sure I...
Results 1 to 12 of 12