Home  >  C++ Resources  > C++ In Action Book > Introduction: Techniques

C++ In Action: Introduction

Pg. Loc. Is Should be
6 bottom --(they are emphesisized in bold in code examples throughout this book) (they aren't!)
7 top "Hello!/N" "Hello!\n"
23 bottom std::cout < "The value is "
(all < signs in this code sample)
std::cout << "The value is "
(should be changed to <<)
30 middle char, which is signed char, is signed
36 top --top --_top
38 middle the index greater than maxCells the index greater than maxCells - 1
49 bottom design, make, private design, private
54 bottom I had to comment on I had to comment out
78 bottom page 204 page 124
108 bottom to include the following clause: to include clause 1.c above.
115 top
Status Parser::Eval
Status Parser::Parse
115 middle (missing case before case tError--also missing in source code on CD)
case tEnd:
	std::cout  << "End\n";
	return stQuit;
117 middle double strtod (char const * str, char *ppEnd); double strtod (char const * str, char ** ppEnd);
117 bottom double strtod (char const * str, char *ppEnd); double strtod (char const * str, char ** ppEnd);
118 bottom declaration of StrToDouble declaration of StrToDouble2
118 bottom double StrToDouble2 (char const * str, char * rpEnd) double StrToDouble2 (char const * str, char *& rpEnd)
123 top curId _curId
130 top double strtod (char const * str, char *ppEnd); double strtod (char const * str, char **ppEnd);
130 top double (* pStrtod) (char const * str, char *ppEnd); double (* pStrtod) (char const * str, char **ppEnd);
144 top Term has a node from factor Term has a node from Factor
149 top (f(x) / g(x))' = (f(x) * g'(x) - f'(x) * g(x)) / (g(x) * g(x)) (f(x) / g(x))' = (f'(x) * g(x) - f(x) * g'(x)) / (g(x) * g(x))
184 bottom Backus-Naur Forum Backus-Naur Form
195 middle PFun GetFun (int id) { return _pFun [id]; } PFun GetFun (int id) const { return _pFun [id]; }
245 top auto_ptr<void*> auto_ptr<void>
259 bottom 0 x ffffffff 0xffffffff
267 Fig Safe ptr to Safe ptr to ref counted buffer
278 middle int AddSymbol (std::string const & str) std::size_t AddSymbol (std::string const & str)
278 middle int FindSymbol (std::string const & str) std::size_t FindSymbol (std::string const & str)
387 middle *typedef void (Commander::*CmdMethod)(); typedef void (Commander::*CmdMethod)();
450 top std::cout << "Getting: " << queue.Get () <<", "
<< queue.Get () << std::endl;
std::cout << "Getting: " << queue.Get () <<", " ;
std::cout << queue.Get () << std::endl;
454 middle for (int i = 0; i < _top; ++i) for (int i = 0; i < _top + 1; ++i
457 bottom while (_aList [_idx].IsEmpty ()); while (_idx < sizeHTable && _aList [_idx].IsEmpty ());