Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Where to free memory?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Victor Bazarov  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 17:23
Newsgroups: comp.lang.c++
From: Victor Bazarov <v.Abaza...@comAcast.net>
Date: Mon, 09 Nov 2009 12:23:20 -0500
Local: Mon 9 Nov 2009 17:23
Subject: Re: Where to free memory?

Phil wrote:
> Let's say I have two classes A and B defined as follows:
> [..shudder..]

> My question is: when should I free the memory allocated for myTable
> array of object classA ?

Please search the Web for, and read about, the "Rule of Three".  Once
you comprehend what it is saying, drop dynamic memory management and
start using the standard containers like 'std::vector<double>'.  You
will not have to "free memory" ever again.

> I am using MS Visual C++ 6.0 and Vista.

Get the latest free MS VC++ Express Edition and enjoy a much improved
compiler, a vastly better standard library, et cetera.  Did I mention
it's free?

 > [..]

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google