Skip to Main Content
C++ Programming: Visual QuickStart Guide
book

C++ Programming: Visual QuickStart Guide

by Larry Ullman, Andreas Signer
December 2005
Beginner content levelBeginner
528 pages
14h 13m
English
Peachpit Press
Content preview from C++ Programming: Visual QuickStart Guide

11. Dynamic Memory Management

So far, every one of this book’s programs has used a fixed amount of memory to accomplish its task. This fixed amount of memory was known and specified (in the form of a variable) when the program was written. These programs could not increase or decrease the amount of memory available for the storage of user data while the program was running. Instead, such changes had to be done in the program’s source code file, and the program had to be recompiled and re-executed.

But the real world is dynamic, and so is the input that has to be processed by a C++ program (for example, users need to be able to submit a varying amount of text in most applications). To handle situations where the amount of data to be stored is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C Programming: Visual Quickstart Guide

C Programming: Visual Quickstart Guide

Larry Ullman, Marc Liyanage

Publisher Resources

ISBN: 032135656XPurchase book