Search:

Type: Posts; User: scarlet00014

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,381

    Ok im a little lost.. how is sent declared if its...

    Ok im a little lost.. how is sent declared if its just a BNODE.. is it declared in the program or inside that particular function? how do i send it in?
  2. Replies
    9
    Views
    1,381

    like in the actual program? do i send in the...

    like in the actual program? do i send in the sentinel node? or should i send in the sent->next's node




    i dont think so.. not really sure
  3. Replies
    9
    Views
    1,381

    doesnt my insert function do what you are...

    doesnt my insert function do what you are describing in the second part?
    what about this for the first part.. this is my find function:


    BNODE *tree_find(char *key, void *tree){
    BNODE *root...
  4. Replies
    9
    Views
    1,381

    was asked to do it this way.. :(

    was asked to do it this way.. :(
  5. Replies
    9
    Views
    1,381

    Linked list binary tree..

    I have this binary tree struct declaration:


    typedef struct _bnode{
    char *name;
    int value;
    struct _bnode *left; //left child
    struct _bnode *right; //right child
    struct...
  6. Replies
    13
    Views
    1,065

    is there anyway to change my bintree library...

    is there anyway to change my bintree library instead of that code? I cant edit that ..
  7. Replies
    13
    Views
    1,065

    I fixed it thankyou :) .. Im not getting the...

    I fixed it thankyou :) ..

    Im not getting the segfault anymore but Im getting this output
    i wanted it to print in alphabetical order.. so thats right at least..

    unix> ./program hey there billy...
  8. Replies
    13
    Views
    1,065

    I just saw that last post by itcbitc.. lol.. I...

    I just saw that last post by itcbitc.. lol.. I swear i didnt see it before..

    that fixed it..

    I get it now lol
  9. Replies
    13
    Views
    1,065

    Oh ya thats all I want.. I set name in my insert...

    Oh ya thats all I want.. I set name in my insert function..
  10. Replies
    13
    Views
    1,065

    I think so.. well i want it to.. is it not?

    I think so.. well i want it to.. is it not?
  11. Replies
    13
    Views
    1,065

    Help.. segfault error

    I didnt get much help last time I posted this...
    please help..

    Im having trouble finding what my problem is..

    Im writing a binary tree library and when I run this test program: (cannot be...
  12. Replies
    7
    Views
    2,331

    So what do i do to fix my segfault........ ...

    So what do i do to fix my segfault........

    PLease help me...
  13. Replies
    7
    Views
    2,331

    I added return new_tree; So what...

    I added

    return new_tree;



    So what should I put instead?
    Should I just declare the variable and not malloc it?
  14. Replies
    7
    Views
    2,331

    strcmp segfault ?

    Im having trouble finding what my problem is..

    Im writing a binary tree library and when I run this test program: (cannot be changed)


    #include <stdio.h>
    #include <stdlib.h>
    #include...
  15. Print function: sending a function.. through a function?

    I dont really know what im supposed to do here..
    I have to pass this print function to another binary tree print function.

    I cant change the stuff in red..


    void print_name(char *key, void...
  16. Replies
    6
    Views
    1,115

    yay thankyou so much!

    yay thankyou so much!
  17. Replies
    6
    Views
    1,115

    so should i return a bnode at the //do somthing?...

    so should i return a bnode at the //do somthing? I had a bnode returning there.. and it gave me an error.. soo... where should i return the bnode?
  18. Replies
    6
    Views
    1,115

    binary trees..compiler error?

    Im trying to write a binary tree library and this is the only function giving me trouble(so far..)


    when i compile, it says:

    bintree.c:32: error: void value not ignored as it ought to be...
  19. Replies
    2
    Views
    12,726

    push and pop functions?

    Im having trouble with this push function.. it says im getting a seg fault and I dont know why..



    typedef struct _stacknode{
    void *value;
    struct _stacknode *next;
    struct...
  20. How do you write a functions declaration?

    If I have this function..


    void push(void *value, void *stack)
    {
    //code
    }
  21. Replies
    13
    Views
    1,673

    Cool thankyou :) With this, I was able to correct...

    Cool thankyou :) With this, I was able to correct all my other functions too.. except this one .. if I change bool to int it works.. but that shouldnt matter becuase im just returning 1 or 0 right?...
  22. Replies
    13
    Views
    1,673

    Well what about stack->prev->next... it says that...

    Well what about stack->prev->next... it says that I cant do that.. im thinking bc its a void * and it doesnt really have a prev pointer. how do I type cast or make the void *stack into a STACKNODE...
  23. Replies
    13
    Views
    1,673

    working with void stars???

    I really dont understand the typecasting part of this... Im getting alot of errors..
    Can anyone tell me why and how I can fix it?

    ** I have to use the void stars..



    typedef struct...
  24. Replies
    18
    Views
    1,759

    Ive been working on this for days nonstop.. I had...

    Ive been working on this for days nonstop.. I had no programming knowledge before the begining of september.. so i dont know how to 'focus' on different sections that work off each other... if i was...
  25. Replies
    18
    Views
    1,759

    I dont understand.. that frees the memory of the...

    I dont understand.. that frees the memory of the old node and then i have nothing to put into the new list...
Results 1 to 25 of 59
Page 1 of 3 1 2 3