Wrox Programmer Forums
BOOK: Professional C++, 2nd Edition
This is the forum to discuss the Wrox book Professional C++, 2nd Edition by Marc Gregoire, Nicholas A. Solter, Scott J. Kleper ; ISBN: 978-1-1181-6995-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C++, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 29th, 2014, 10:34 AM
Registered User
Join Date: Apr 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question heap x stack

Hello everybory. I´d like to ask the following question:

I´ve been developing a program, but because it´s the first one in C++, too many questions has come together. I know I can figure them out bymyself as I have done on 99% of them, but help is Always welcome.

My program, using serialization, not a independent database, is gonna grow too big at certain point of time.
Because using serializing inputs the whole ifstream into memory, I wonder if I should use the heap or stack.
Actually, I don´t know if this has something to do with that. I mean, I learn just what I need and then if I have problems or later on when I´m done with what I need, I start studying the rest of it as I just love C and C++

Ahh, my program is a console application.

Thank you so much, Robson
Old June 3rd, 2014, 01:21 PM
Wrox Author
Join Date: Mar 2011
Posts: 49
Thanks: 0
Thanked 4 Times in 4 Posts

If you don't know the size of your data at compile-time, you have no choice, but to use the heap.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Stack and Heap Memory Storage Ashish_Sharma_1982 .NET 4 and Visual Studio 2010 General Discussions 1 March 15th, 2016 03:57 AM
lvalue/rvalue vs. stack/heap hkyoon BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 4 January 11th, 2009 11:17 PM
Heap of typing errors HELP!!! ours All Other Wrox Books 11 December 24th, 2007 11:23 AM
Heap Monitor pallavi11 VB How-To 5 January 11th, 2007 08:37 PM
Could not reserve enough space for object Heap overcit Apache Tomcat 0 February 23rd, 2006 12:11 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.