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...
Type: Posts; User: tkd_aj
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...
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...
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...
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...
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....
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.
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...
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......
all right sorry guys, I got everything fixed... I just went through and manually put all the spaces in.
oh, and the text editor where it was all written was gedit. and im not sure what you mean by line endings.
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....
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...
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...
Wow... lol.. Thank you! That was it!
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...
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.
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...