Abstract
Equipped with the C++ subset that covers Pascal, one can write any program in C++ that could have been written in Pascal. Reading code that others have written, however, leads to a discovery of additional operators, the use of dynamic allocation to enable the definition of nonlocal variables (i.e., nonlinked storage with a lifetime exceeding that of the function), and new capabilities of functions beyond those in Pascal. These are the topics discussed in Sections 3.1, 3.2, and 3.3, respectively. The purpose of this chapter is not to provide an exhaustive survey of the entire nonobject part of C++ (which includes C). The aim is to highlight those useful language structures that are characteristic of C++ that lack direct analogues in Pascal.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Ellis, M. A. and Stroustrup, B. The Annotated C++ Reference Manual. Reading, MA: Addison-Wesley, 1990.
Kernighan, B. W. and Ritchie, D. M. The C Programming Language, 2nd ed. Englewood Cliffs, NJ: Prentice-Hall, 1988.
Lippman, S. B. C++ Primer, 2nd ed. Reading, MA: Addison-Wesley, 1991.
Plaugher, P. J. The Standard C Library. Englewood Cliffs, NJ: Prentice-Hall, 1992.
Plaugher, P. J. The Draft Standard C++ Library. Englewood Cliffs, NJ: Prentice-Hall, 1995.
Stroustrup, B. The C++ Programming Language, 2nd ed. Reading, MA: Addison-Wesley, 1991.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1997 Springer Science+Business Media New York
About this chapter
Cite this chapter
Merritt, S.M., Stix, A. (1997). Procedural C++ That Extends Pascal. In: Migrating from Pascal to C++. Undergraduate Texts in Computer Science. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-1902-6_3
Download citation
DOI: https://doi.org/10.1007/978-1-4612-1902-6_3
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4612-7332-5
Online ISBN: 978-1-4612-1902-6
eBook Packages: Springer Book Archive