Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
134 Software Essentials
is undened. Violation of the required precondition voids the contract
between the class designer and the application programmer. No guarantee
then remains for any resulting behavior.
Without an internal check, pop() may proceed with its attempt to
remove a value from the stack data structure. Such action may result in the
return of an invalid value. Consider a stack implemented as an array: the
“top” of the stack is an index into the array. When the stack is empty, this
index is invalid. In C++, use of an invalid index results in the extraction
of aninvalid data value (whatever value resident in memory so indexed).
Why? C++ does not automatically provide run-time checks on array
bounds. Hence, an application ...
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

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204