- pg 45
Of the definitions only
char ch;
complex cvar;
do not specify values. ...
- pg 47
int a = 1;
void f()
{
int b = 1; // initialized at each call of f()
static int c = a; // initialized once only
cout << " a = " << a++
<< " b = " << b++
<< " c = " << c << '\n';
c = c + 2;
}
int main()
{
while (a < 4) f();
}
-
and fix the output to match
- pg 131 // invoke pow(double,double)
-
- pg 166 s/task_chain/chain/trice
-
- pg 167 third line s/};/}/
-
- pg 239
X& operator=(const X&);
-
- pg 268 s/T* Slist_iter::operator()()/template<class T> T* Slist_iter::operator()()/
- pg 273 s/inline// twice
- pg 334-335
-
int s = cin.rdstate(); // returns a set of io_state bits
if (s & ios::goodbit) {
// the last operation on cin succeeded
}
else if (s & ios::badbit) {
// cin characters possibly lost
}
else if (s & ios::failbit) {
// some kind of formatting error, probably not too bad
}
else if (s & ios::eofbit) {
// at end of file
}
- pg 341 s/};/}/
-
- pg 351 s/output/input/
-
- pg444 s/ref_cast(dialog_box,db)/ref_cast(dbox_w_string,db)/
-
- pg 472 s/Handle(const T* pp)/Handle(T* pp)/
-
- pg 309 s/Public/public/
-
- pg 314 s/(int size)/(int sz)/
-
- pg 314 s/Vector v(i)/ Vector (i)/
-
- pg 338 s/rdstate();/rdstate()/
-
- pp 398,399 s/virtual void/public: virtual void/
-
- pg 408 s/underflow(T)/underflow()/
-
- pg 424 s/}/};/
-
- pg 339 s/<< '(' << 12/<< 12/
- p.340 dec=020; //octal => dec=020; //decimal
-
oct=040; //decimal => oct=040; //octal
- pg 349 s/char file[n-1];/char file[n];/
- pg 357 s/[-]d.ddde+dd/[-]d.ddde<plus or minus>dd/
- pg 451 s/D* pb = (D*)pb;/D* pd = (D*)pb;/
- pg 474
Pool::Pool(unsigned sz)
: esize(sz<sizeof(Link*)?sizeof(Link*):sz)
{
head = 0;
}