Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Re: String from...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 15 Topic 4202 of 4295
Post > Topic >>

Re: String from C to C++

by Bart van Ingen Schenau <bart@[EMAIL PROTECTED] > Jul 16, 2008 at 05:53 PM

lau.dvd@[EMAIL PROTECTED]
 wrote:

> Thanks! One last question. . .
> 
> So the author of the class has to write the destructor properly so
> that when the class is freed, all related resources are returned - no
> matter when the destruction occurs. And the user does not need to take
> care of that. The compiler automatically instantiate and free the
> class, e.g. when it goes out of scope.
> 
> That's my understanding.. I hope that was right =P

That is correct.

> 
> And.. are there any good books on these specific issues such as
> cl*****, memory management, etc? The books I tried all talk about how
> to use specific cl***** such as those provided by STL or Boost... but
> not the language itself.

You may not find it all in one book, but there are good books that
discuss these topics.
Any good beginners book should give an introduction to writing cl*****
yourself, but don't be surprised if that only happens in the second
half of the book.
Memory management is often only discussed in combination with new/delete
and that is often considered to be an advanced topic, so it may be
absent in a beginners book. IME, most beginning C++ programmers, even
if they have a C background, don't question the lack of explicit memory
management they see in the C++ programs.

As I am not familiar with the availability and quality of today's
tutorials, I can't give any specific recommendations for a book.

> 
> Thanks for your time!
> 
> David Lau

Bart v Ingen Schenau
-- 
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://c-faq.com/
c.l.c++ FAQ: http://www.para****ft.com/c++-faq-lite/
 




 15 Posts in Topic:
String from C to C++
lau.dvd@[EMAIL PROTECTED]  2008-07-14 05:34:12 
Re: String from C to C++
"Daniel T." <  2008-07-14 09:05:20 
Re: String from C to C++
Bart van Ingen Schenau &l  2008-07-14 19:53:17 
Re: String from C to C++
lau.dvd@[EMAIL PROTECTED]  2008-07-14 19:40:10 
Re: String from C to C++
LR <lruss@[EMAIL PROTE  2008-07-15 01:49:45 
Re: String from C to C++
Bart van Ingen Schenau &l  2008-07-15 19:32:58 
Re: String from C to C++
Jerry Coffin <jcoffin@  2008-07-15 12:23:29 
Re: String from C to C++
Bart van Ingen Schenau &l  2008-07-16 17:43:55 
Re: String from C to C++
Francis Glassborow <fr  2008-07-15 09:03:38 
Re: String from C to C++
lau.dvd@[EMAIL PROTECTED]  2008-07-15 20:47:33 
Re: String from C to C++
Bart van Ingen Schenau &l  2008-07-16 17:53:34 
Re: String from C to C++
LR <lruss@[EMAIL PROTE  2008-07-16 13:32:02 
Re: String from C to C++
"Daniel T." <  2008-07-16 21:48:31 
Re: String from C to C++
lau.dvd@[EMAIL PROTECTED]  2008-07-17 19:09:56 
Re: String from C to C++
Bart van Ingen Schenau &l  2008-07-18 17:10:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 16:21:26 CDT 2008.