Search the web
Sign In
New User? Sign Up
c-prog · C/C++ Programmer's Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 66987 - 67016 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
66987
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...
~Rick
thefirstrepa...
Offline Send Email
Jun 1, 2008
7:21 pm
66988
... <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 **"...
Nico Heinze
nico_heinze
Offline Send Email
Jun 1, 2008
10:17 pm
66989
... Thanks Nico. How would I call the function? Currently I have this: struct ENTRY *list; . . delete_first_node(list); Would I use:...
~Rick
thefirstrepa...
Offline Send Email
Jun 1, 2008
10:43 pm
66990
... 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;...
Mickey Mathieson
user14312
Offline Send Email
Jun 1, 2008
11:53 pm
66991
... 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...
Thomas Hruska
shininglightpro
Offline Send Email
Jun 1, 2008
11:58 pm
66992
... Just nitpicking, but do you need temp? first = llist->next; delete llist; return first;...
John Matthews
johnmatthews...
Offline Send Email
Jun 2, 2008
6:59 pm
66993
... 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...
~Rick
thefirstrepa...
Offline Send Email
Jun 2, 2008
8:09 pm
66994
... 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...
Mickey Mathieson
user14312
Offline Send Email
Jun 3, 2008
1:41 am
66995
... 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...
Mickey Mathieson
user14312
Offline Send Email
Jun 3, 2008
1:47 am
66996
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...
dplescia
Offline Send Email
Jun 3, 2008
11:19 am
66997
is it possible to override an MFC method ?...
spudgun0
Offline Send Email
Jun 3, 2008
12:28 pm
66998
... The dropdown box that you see is called "Intellisense". I personally recommend using VS 2008 - Intellisense continues to be significantly improved over...
Thomas Hruska
shininglightpro
Offline Send Email
Jun 3, 2008
1:15 pm
66999
... 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...
Thomas Hruska
shininglightpro
Offline Send Email
Jun 3, 2008
1:17 pm
67000
... 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 ...
~Rick
thefirstrepa...
Offline Send Email
Jun 3, 2008
1:32 pm
67001
... 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...
John Gaughan
john23874
Offline Send Email
Jun 4, 2008
4:54 am
67002
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...
Raj jyotee DuttaPhookan
raj_duttapho...
Offline Send Email
Jun 4, 2008
10:00 am
67003
... VAX is also expensive for most people. VS2008 has significantly improved Intellisense (not as good as VAX but much it keeps getting better/smarter). -- ...
Thomas Hruska
shininglightpro
Offline Send Email
Jun 4, 2008
1:45 pm
67004
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...
alandutton64
Offline Send Email
Jun 4, 2008
2:46 pm
67005
... 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...
Brett McCoy
smartandkewl
Offline Send Email
Jun 4, 2008
2:48 pm
67006
... 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 ...
Paul Herring
shabble
Offline Send Email
Jun 4, 2008
2:52 pm
67007
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@...
Send Email
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...
stephendoty
Offline Send Email
Jun 5, 2008
5:13 am
67009
... Hi Stephen. ... I think that's where it's going wrong :-) Cheers John...
John Matthews
johnmatthews...
Offline Send Email
Jun 5, 2008
6:50 am
67010
You've probably seen this (or something like it) already, but there's a graphical (Java) demonstration at: ...
John Matthews
johnmatthews...
Offline Send Email
Jun 5, 2008
7:41 am
67011
... 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...
Paul Herring
shabble
Offline Send Email
Jun 5, 2008
9:13 am
67012
Almost forgot... On Thu, Jun 5, 2008 at 10:13 AM, Paul Herring <pauljherring@...> wrote: [...] ... ... and the elements may be accessed at random. You...
Paul Herring
shabble
Offline Send Email
Jun 5, 2008
9:15 am
67013
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...
Ajinkya Kale
ajinkyakale_86
Offline Send Email
Jun 5, 2008
9:25 am
67014
... This looks to be slightly off-topic, and would probably be more on-topic on a maths-related forum. Have you looked at ...
Paul Herring
shabble
Offline Send Email
Jun 5, 2008
9:31 am
67015
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...
Ajinkya Kale
ajinkyakale_86
Offline Send Email
Jun 5, 2008
11:31 am
67016
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...
stephendoty
Offline Send Email
Jun 5, 2008
11:44 am
Messages 66987 - 67016 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help