Commit 4dd3a305 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

README.TXT

0 → 100755
+3 −0
Changes for README.TXT: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
The tguide directory contains (among other 
things) sample solutions to the exercises
at the end of the chapters.

README.md

0 → 100644
+15 −0
Changes for README.md: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
## Example files for the title:  
	  
# Practical C++ Programming, by Steve Oualline
	  
[![Practical C++ Programming, by Steve Oualline](http://akamaicovers.oreilly.com/images/9781565921399/cat.gif)](https://www.safaribooksonline.com/)
	  
The following applies to example files from material published by O’Reilly Media, Inc. Content from other publishers may include different rules of usage. Please refer to any additional usage rights explained in the actual example files or refer to the publisher’s website.
	  
O'Reilly books are here to help you get your job done. In general, you may use the code in O'Reilly books in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing our books and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Incorporating a significant amount of example code from our books into your product's documentation does require permission.
	  
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
	  
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact us at <permissions@oreilly.com>.
	  
Please note that the examples are not production code and have not been carefully testing. They are provided "as-is" and come with no warranty of any kind.

disk.dos/WS_FTP.LOG

0 → 100755
+16 −0
Changes for disk.dos/WS_FTP.LOG: 16 added lines, 0 removed lines.
Original line number Diff line number Diff line
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-all.bat <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-all.bat
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-all.sh <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-all.sh
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-bcc.bat <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-bcc.bat
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-gnu.sh <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-gnu.sh
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-msvc.bat <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-msvc.bat
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-tcc.bat <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-tcc.bat
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-unix.sh <-- ora anon ftp /examples/nutshell/practcpp/disk.dos mk-unix.sh
2001.01.18 11:12 B C:\WINDOWS\Desktop\cplus\disk.dos\nmk-all.bat <-- ora anon ftp /examples/nutshell/practcpp/disk.dos nmk-all.bat
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-all.bat --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-all.bat
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-all.sh --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-all.sh
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-bcc.bat --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-bcc.bat
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-gnu.sh --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-gnu.sh
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-msvc.bat --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-msvc.bat
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-tcc.bat --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-tcc.bat
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\mk-unix.sh --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos mk-unix.sh
2001.01.18 11:40 B C:\WINDOWS\Desktop\cplus\disk.dos\nmk-all.bat --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos nmk-all.bat
+12 −0
Changes for disk.dos/and/WS_FTP.LOG: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
2001.01.18 11:03 B C:\WINDOWS\Desktop\cplus\disk.dos\and\and.cpp <-- ora anon ftp /examples/nutshell/practcpp/disk.dos/and and.cpp
2001.01.18 11:03 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.bcc <-- ora anon ftp /examples/nutshell/practcpp/disk.dos/and makefile.bcc
2001.01.18 11:03 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.gnu <-- ora anon ftp /examples/nutshell/practcpp/disk.dos/and makefile.gnu
2001.01.18 11:04 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.msc <-- ora anon ftp /examples/nutshell/practcpp/disk.dos/and makefile.msc
2001.01.18 11:04 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.tcc <-- ora anon ftp /examples/nutshell/practcpp/disk.dos/and makefile.tcc
2001.01.18 11:04 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.unx <-- ora anon ftp /examples/nutshell/practcpp/disk.dos/and makefile.unx
2001.01.18 11:29 B C:\WINDOWS\Desktop\cplus\disk.dos\and\and.cpp --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos/and and.cpp
2001.01.18 11:29 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.bcc --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos/and makefile.bcc
2001.01.18 11:29 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.gnu --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos/and makefile.gnu
2001.01.18 11:29 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.msc --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos/and makefile.msc
2001.01.18 11:29 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.tcc --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos/and makefile.tcc
2001.01.18 11:29 B C:\WINDOWS\Desktop\cplus\disk.dos\and\makefile.unx --> ftp.ora.com /internet/epubs/htdocs/cplus/disk.dos/and makefile.unx

disk.dos/and/and.cpp

0 → 100755
+22 −0
Changes for disk.dos/and/and.cpp: 22 added lines, 0 removed lines.
Original line number Diff line number Diff line
#include <iostream.h>
main()
{
    int i1, i2; // two random integers 

    i1 = 4;
    i2 = 2;     // set values 

    // Nice way of writing the conditional 
    if ((i1 != 0) && (i2 != 0))
        cout << "Both are not zero #1\n";

    // Shorthand way of doing the same thing 
    // Correct C++ code, but rotten style 
    if (i1 && i2)
        cout << "Both are not zero #2\n";

    // Incorrect use of bitwise and resulting in an error 
    if (i1 & i2)
        cout << "Both are not zero #3\n";
    return (0);
}
Loading