Memory as a Programming Concept in C and C++

Author: Frantisek Franek  

Publisher: Cambridge University Press‎

Publication year: 2003

E-ISBN: 9780511838620

P-ISBN(Paperback): 9780521817202

Subject: TP333 存贮器

Keyword: 程序设计、软件工程

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Memory as a Programming Concept in C and C++

Description

The overwhelming majority of bugs and crashes in computer programming stem from problems of memory access, allocation, or deallocation. Such memory related errors are also notoriously difficult to debug. Yet the role that memory plays in C and C++ programming is a subject often overlooked in courses and in books because it requires specialised knowledge of operating systems, compilers, computer architecture in addition to a familiarity with the languages themselves. Most professional programmers learn entirely through experience of the trouble it causes. This 2004 book provides students and professional programmers with a concise yet comprehensive view of the role memory plays in all aspects of programming and program behaviour. Assuming only a basic familiarity with C or C++, the author describes the techniques, methods, and tools available to deal with the problems related to memory and its effective use.

Chapter

3 Variables and Objects; Pointers and Addresses

4 Dynamic Allocation and Deallocation of Memory

5 Functions and Function Calls

6 One-Dimensional Arrays and Strings

7 Multi-Dimensional Arrays

8 Classes and Objects

9 Linked Data Structures

10 Memory Leaks and Their Debugging

11 Programs in Execution: Processes and Threads

A Hanoi Towers Puzzle

B Tracing Objects in C++

C Tracing Objects and Memory in C++

D Thread-Safe and Process-Safe Reporting and Logging Functions

Glossary

Index

The users who browse this book also browse