I am creating some singly-linked lists. I am having some trouble deleting nodes. There are two areas where I am having difficulty. The first is deleting the...
... <snip> Hi Rick, this is a typical problem. I've stumbled upon it quite a few times, you're not alone. ;-) The solution is simple: pass a "struct ENTRY **"...
... You might consider altering your function to return the value of the NEW first node. ENTRY* delete_first_node(struct ENTRY *llist) { struct ENTRY *temp;...
... Old C programmers have difficulties moving entirely to C++. I still prefer printf() over 'cout'. I initially learned C++ and then went back to C for...
... I'd rather not have to return the new value. Thanks to Nico, here's my working code: void delete_first_node(struct ENTRY **llist) { struct ENTRY *tlist...
... Its was just a copy of the orignal function! I think you answered your own question. Mickey M. Construction Partner Inc. http://www.constructionpartner.com...
... JUst trying to be helpfull. I don't understand your logic however. Returning a value makes it VERY CLEAR what the function does - a pointer to a pointer is...
I have recently started reading a book, in an attempt to learn C++. So far, so good; but I do have one question that I can't seem to find an answer to. I am...
... The dropdown box that you see is called "Intellisense". I personally recommend using VS 2008 - Intellisense continues to be significantly improved over...
... People do that all the time, but it helps if the function you want to override is declared 'virtual' or in the message map. -- Thomas Hruska CubicleSoft...
... I appreciate your help, and wasn't being critical. I simply chose to use Nico's method. I agree that returning a value makes things clear. For this ...
... There is a very easy solution: write a comment! You can even use a Doxygen comment to create HTML documentation about how your class works and why you have...
You can use Visual Assist by Whole Tomato Software. It plugs in to the Visual Studio and shall show you all the member of any class. Its of great help to...
... VAX is also expensive for most people. VS2008 has significantly improved Intellisense (not as good as VAX but much it keeps getting better/smarter). -- ...
I am learning from a number of books trying each one in turn. I bought a n old one (2003) whilst in america. it is by deitel & deitel c++ howq to program 4th...
... It's endl not end1 (as in the letter l, not the number 1) -- Brett ... "In the rhythm of music a secret is hidden; If I were to divulge it, it would...
... It's short for "end line" if it's any help in remembering it in the future. -- PJH 'Two Dead in Baghdad' not 'product-friendly' - Kent Ertugrul, chief ...
Hi, I am just guessing, but end1 should be perhaps endl (like end of line). Concerning the books, as far, as I know, some list of good publications should be...
Oliva Lukas
xoliva02@...
Jun 4, 2008 8:00 pm
67008
Hello All: This is my first post, so hello everyone. I am having a little difficulty understanding how binary searching works. I am currently in an...
... No. It's just simpler to chose one method of obtaining a whole number from a fractional one, and use it everywhere. To be honest, you're just doing this in...
Almost forgot... On Thu, Jun 5, 2008 at 10:13 AM, Paul Herring <pauljherring@...> wrote: [...] ... ... and the elements may be accessed at random. You...
How do we solve recurrence relations of the form: T(c) = T( | c - 2^ceil(log_2(c)) | ) + O( 2^ceil(log_2c) ) What will be the approximate outcome of this...
I am really sorry for being a bit of the topic but I thought there are so many good programmers around here with great knowledge of algorithms so some one...
The last part of my example was supposed to show that Joe was not on the list and the only way to show that was to have the beginning bigger than the end or...