📄 readme
字号:
LIST OF ALL C++ PROGRAMS IN CHAPTER 1
All programs have been tested using Borland C++ version 5.01 for Windows 95.
For programs that require input to be provided, sample input is given in the
corresponding .dat file. This sample input is NOT intended to constitute
an adequate test set. For information on designing test data, see
Section 1.5 of the text.
The output generated by each program is given in the corresponding .out file.
CHAPTER 1
Program 1.1 Compute an integer expression
file: abc1.cpp
Program 1.2 Compute a floating point expression
file: abc2.cpp
Program 1.3 Compute an expression using a template function
file: abc3.cpp
Program 1.4 Compute an expression using reference parameters
file: abc4.cpp
Program 1.5 Compute an expression using const reference parameters
file: abc5.cpp
Program 1.6 A more general version of Program 1.5
file: abc6.cpp
Program 1.7 Recursive function to compute n!
file: fact.cpp
Program 1.8 Add a[0:n-1]
file: sum.cpp
Program 1.9 Recursive code to add a[0:n-1]
file: rsum.cpp
Program 1.10 Recursive function for permutations
file: perm.cpp
Program 1.11 Swap two values
file: swap.h, swap.cpp
Program 1.12 Allocate memory for a two-dimensional array
file: make2da,h, make2da.cpp
Program 1.13 Make a two-dimensional array but do not catch exceptions
file: make2db,h, make2db.cpp
Program 1.14 Free the memory allocated by Make2DArray
file: del2d.h, del2d.cpp
Program 1.15 Declaration of the class Currency
file: curr1.h, curr1.cpp
Program 1.16 Constructor for Currency
file: curr1.h, curr1.cpp
Program 1.17 Setting the private data members
file: curr1.h, curr1.cpp
Program 1.18 Adding two currency values
file: curr1.h, curr1.cpp
Program 1.19 Increment and Output
file: curr1.h, curr1.cpp
Program 1.20 Application of the class \f(CWCurrency\fR
file: curr1.h, curr1.cpp
Program 1.21 New declaration of the class Currency
file: curr2.h, curr2.cpp
Program 1.22 New constructor and set codes
file: curr2.h, curr2.cpp
Program 1.23 New code for \f(CWAdd\fR and \f(CWlOutput\fR
file: curr2.h, curr2.cpp
Program 1.24 Class declaration using operator overloading
file: curr3.h, curr3.cpp
orPgram 1.25 Codes for \f(CW+\fR, \f(CWOutput\fR, and \f(CW<<\fR
file: curr3.h, curr3.cpp
Program 1.26 Using overloaded operators
file: curr3.h, curr3.cpp
Program 1.27 Exception class BadInitializers
file: xcept.h
Program 1.28 Throwing an exception
file: curr4.h, curr4.cpp
Program 1.29 Overloading the friend `<<'
file: curr5.h, curr5.cpp
Program 1.30 Compute and output the roots of a quadratic
file: roots.cpp
Program 1.31 Finding the largest element
file: max.cpp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -