Search:

Type: Posts; User: tkd_aj

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,664

    Okay, I just realized I have a check for...

    Okay, I just realized I have a check for is_empty() in both my main and my subprogram for printing so i removed the one in my subprogram and I get the segmentation fault back? How does this make...
  2. Replies
    4
    Views
    5,664

    All right, I edited my code as you suggested and...

    All right, I edited my code as you suggested and I no longer get a segmentation fault, but it says in my warnings that the (is_empty) function will always return true and it does. Every time I try to...
  3. Replies
    4
    Views
    5,664

    printing binary trees

    I am still relatively new to C Programming (In my second semester in school) an d we are starting binary trees. I can add to my tree and delete from my tree, but whenever I try to print it gives me a...
  4. Replies
    17
    Views
    11,016

    I also have two more error's that I didn't think...

    I also have two more error's that I didn't think were a big deal but after googling them I guess they might be?

    the two errors are both: "warning: control reaches end of non-void function...
  5. Replies
    17
    Views
    11,016

    you have been very helpful, thank you very much....

    you have been very helpful, thank you very much. I have fixed these things you have told me about and tried out that -Wall in my makefile, which is awesome btw, but I still have the same error....
  6. Replies
    17
    Views
    11,016

    I removed the [code] queue queue; queue =...

    I removed the

    [code]

    queue queue;
    queue = *q;

    but it didn't do anything. I am still getting the segment error, but there is no longer a warning about that part, so that's good.
  7. Replies
    17
    Views
    11,016

    lol, I know that looks weird, but the reason i...

    lol, I know that looks weird, but the reason i did it was because I thought that *q was a pointer and i kept getting a warning until i did that. I didn't understand why, but it made the warning go...
  8. Replies
    17
    Views
    11,016

    You're not really speaking my language, lol.....

    You're not really speaking my language, lol.. This is only my second programming class and I'm not really sure what you mean by "set breakpoints with your debugger". I don't really have a debugger......
  9. Replies
    17
    Views
    11,016

    all right sorry guys, I got everything fixed... I...

    all right sorry guys, I got everything fixed... I just went through and manually put all the spaces in.
  10. Replies
    17
    Views
    11,016

    oh, and the text editor where it was all written...

    oh, and the text editor where it was all written was gedit. and im not sure what you mean by line endings.
  11. Replies
    17
    Views
    11,016

    I sent it to myself in an email through gmail as...

    I sent it to myself in an email through gmail as an attachment, opened it in notepad (which looked wrong like it does here) so i tried internet explorer to open it instead and it looked right there....
  12. Replies
    17
    Views
    11,016

    is it just on my screen or are the first two...

    is it just on my screen or are the first two parts of my code in a long line? they won't stay the way I wrote them for some reason...
  13. Replies
    17
    Views
    11,016

    segmentation fault (core dumped)?

    I am fairly new to using pointers and queues and such, but this is a program we're required to write for class and I finally got it to compile completely without any errors or warnings and now I go...
  14. Replies
    7
    Views
    11,767

    Wow... lol.. Thank you! That was it!

    Wow... lol.. Thank you! That was it!
  15. Replies
    7
    Views
    11,767

    she actually mentioned something like that. She...

    she actually mentioned something like that. She said she doesn't want us to use a "forced" exit like a return statement or an exit statement. Thank you for the reply though. Can anyone see why my...
  16. Replies
    7
    Views
    11,767

    Thank you very much for the reply, but my teacher...

    Thank you very much for the reply, but my teacher wants us to use a while loop for our menu like I have it, so I cannot change the structure of the menu.
  17. Replies
    7
    Views
    11,767

    program won't exit

    I am pretty new to C programming and this is a homework assignment.
    I do not understand why my program will not exit. I looked at a previous program I wrote for this same class and it literally...
Results 1 to 17 of 17