Procedural C++ That Extends Pascal
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.
KeywordsTurkey Sorting Tempo Prefix Allo
Unable to display preview. Download preview PDF.
- 1.Ellis, M. A. and Stroustrup, B. The Annotated C++ Reference Manual. Reading, MA: Addison-Wesley, 1990.Google Scholar
- 2.Kernighan, B. W. and Ritchie, D. M. The C Programming Language, 2nd ed. Englewood Cliffs, NJ: Prentice-Hall, 1988.Google Scholar
- 3.Lippman, S. B. C++ Primer, 2nd ed. Reading, MA: Addison-Wesley, 1991.Google Scholar
- 4.Plaugher, P. J. The Standard C Library. Englewood Cliffs, NJ: Prentice-Hall, 1992.Google Scholar
- 5.Plaugher, P. J. The Draft Standard C++ Library. Englewood Cliffs, NJ: Prentice-Hall, 1995.Google Scholar
- 6.Stroustrup, B. The C++ Programming Language, 2nd ed. Reading, MA: Addison-Wesley, 1991.Google Scholar