Index of /~ola/book/codedir
Name Last modified Size Description
Parent Directory -
Makefile.unix 25-Sep-1998 11:58 527
README 05-Sep-1998 16:45 3.0K
ap.zip 20-Sep-1998 22:28 209K
ap/ 05-Apr-1999 14:47 -
data/ 07-Feb-1999 20:55 -
haverford/ 15-Jan-1998 14:31 -
mac/ 14-Dec-1997 12:42 -
old/ 26-Jan-1997 23:55 -
unix.tar 25-Sep-1998 11:56 430K
unix.tar.gz 25-Sep-1998 11:55 71K
unix/ 05-Apr-1999 14:52 -
windows/ 11-May-1999 18:36 -
*** new note on September 5, 1998
The directory 'ap' has all the programs/classes in the book
but apstring/apvector/apmatrix are used instead of the
classes cpstring/string Vector/Matrix as shown in the book.
This will facilitate using the book in AP courses (AP is
Advanced Placement) and as I migrate towards using apstring/apvector
etc for the second edition.
The ap code should work on 'any' system, e.g., with Turbo/Borland
Visual/Codewarrior
You can get all the classes/code as ap.zip
let me know if there are any problems
**************************************
A Computer Science Tapestry
Exploring Programming and Computer Science using C++
by Owen Astrachan, McGraw-Hill 1997
The code for the final version of the book, published in December of
1996, is in the directory final. A gzipped tar file is stored as
unix.tar.gz, the directory 'unix' stores the files individually. These
files have been tested with g++ under Unix/Solaris/Linux.
Files that work with Windows machines, either Borland 4.5 or
Visual C++ 4.0 are in the windows subdirectories. See the
README file in the windows subdirectory. Both Borland 4.5
and Visual C++ 4.0 do NOT support the built-in type bool,
so the header file bool.h is included. Also, in both
of those environments the standard string class conflicts
with the class string defined in CPstring.h. To avoid this,
I renamed the string class defined in CPstring.h from string
to cpstring. There are a few other caveats too, see the README
files. I've tested the code in the borland directory using
Symantec and Metrowerks on Macs, but I didn't test every single
file. Nevertheless, I believe that renaming the string class
and using bool.h is key in those environments, so that
the borland files will work.
Summary
Unix/Linux g++ Windows/Borland Windows/Visual C++ Mac
--------------------------------------------------------------
directory unix windows/borland windows/visual mac
one file unix.tar.gz borland.zip vcpp.zip
To ftp a .gz/zip file, switch to binary mode and get the file. You'll need
unzip and untar (or tar xzf) to extract files from a tar file, unzip
alone to unzip the .zip file in Windows.
ftp> binary
200 Type set to I.
ftp> get unix.tar.Z
then use gunzip and tar, or combine:
tar xzvf unix.tar.gz
(if tar doesn't work, try gtar)
on Windows/Dos
unzip borland.zip
------
Alternatively, cd into the unix directory, turn off prompting, and use
mget to get all the files (see below)
ftp> cd unix
250 CWD command successful
ftp> prompt
Interactive mode off.
ftp> mget *
Please let me know of any problems
Owen
--
Owen L. Astrachan
Associate Professor of the Practice of Computer Science
Director of Undergraduate Studies
Comp. Science: LSRC, D241 internet: ola@cs.duke.edu
Box 90129 Phone (919) 660-6522
Duke University fax (919) 660-6519
Durham, NC 27708-0129 http://www.cs.duke.edu/~ola