|
-
August 10th, 2009, 05:34 PM
#3
Re: several conceptual questions
 Originally Posted by Amleto
1) Because you told it to.
2) How is the compiler meant to know when you want to free the memory?
If you dont want to lose all data in file, use ios::app, I believe.
Thanks for the reply.
Because its the end of the program. How the compiler know to delete the memory for other variables for example?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|