Yeah, I noticed that right after I posted my code when I tried deleting the only node left :p Thanks for the help guys.
Type: Posts; User: PaulAtreus
Yeah, I noticed that right after I posted my code when I tried deleting the only node left :p Thanks for the help guys.
Ok, I converted my SLL into a DLL. However, this is the first time I have created a DLL and I was hoping I could get some advice on my node deletion code...The code I have works, but for some reason...
Thanks the the advice guys...I guess I'll just convert it over to a DLL. Thanks again!
I thought that DLLs were exactly the same as a SLL with the added pointer to the previous node's address? From what I get, you said I could either create a DLL or add a pointer to the previous...
Alright, I've got a nice linked list going on...but I've come to a problem. I created a SLL (singly linked list) and all is good except that I can't figure out how to delete a node from the middle...
Ok, I switched to using .fail() and it returns a non-zero value so I've got my solution, but why the heck isn't .bad() working? Is there something I'm not aware of? Like I said, .fail() works, but...
Alright guys, here's an an easy one...maybe you can let me know what the heck is going on here. For some reason, when I attempt to open an ifstream using a filename that doesn't exist, .bad()...