CPP-Primer(4rh-SC-Win)
所属分类:Windows编程
开发工具:C++
文件大小:1423KB
下载次数:5
上传日期:2012-06-08 17:52:24
上 传 者:
xiaobei0545
说明: C++primer 第四版配书源代码,代码相当规范.
(C++primer fourth edition with the book source code, the code is fairly standardized)
文件列表:
C++ Primer(4rh SC Win) (0, 2012-04-09)
C++ Primer(4rh SC Win)\1 (0, 2012-04-09)
C++ Primer(4rh SC Win)\1\add.cpp (1666, 2005-02-09)
C++ Primer(4rh SC Win)\1\add_item.cpp (1555, 2005-02-09)
C++ Primer(4rh SC Win)\1\add_item2.cpp (1782, 2005-02-09)
C++ Primer(4rh SC Win)\1\avg_price.cpp (2191, 2005-02-09)
C++ Primer(4rh SC Win)\1\count.cpp (1999, 2005-02-09)
C++ Primer(4rh SC Win)\1\data (0, 2012-04-09)
C++ Primer(4rh SC Win)\1\data\add (6, 2005-02-01)
C++ Primer(4rh SC Win)\1\data\add_item (46, 2005-02-01)
C++ Primer(4rh SC Win)\1\data\book_sales (234, 2005-02-01)
C++ Primer(4rh SC Win)\1\data\mysum (9, 2005-02-01)
C++ Primer(4rh SC Win)\1\Debug (0, 2012-04-09)
C++ Primer(4rh SC Win)\1\Debug\mysum.exe (544895, 2010-04-19)
C++ Primer(4rh SC Win)\1\Debug\mysum.ilk (784580, 2010-04-19)
C++ Primer(4rh SC Win)\1\Debug\mysum.obj (247711, 2010-04-19)
C++ Primer(4rh SC Win)\1\Debug\mysum.pch (2001516, 2010-04-19)
C++ Primer(4rh SC Win)\1\Debug\mysum.pdb (1090560, 2010-04-19)
C++ Primer(4rh SC Win)\1\Debug\vc60.idb (74752, 2010-04-19)
C++ Primer(4rh SC Win)\1\Debug\vc60.pdb (110592, 2010-04-19)
C++ Primer(4rh SC Win)\1\forcount.cpp (1624, 2005-02-09)
C++ Primer(4rh SC Win)\1\for_ex.cpp (1476, 2005-02-09)
C++ Primer(4rh SC Win)\1\item_io.cpp (1614, 2005-02-09)
C++ Primer(4rh SC Win)\1\main_only.cpp (1341, 2005-02-09)
C++ Primer(4rh SC Win)\1\makefile (389, 2005-02-01)
C++ Primer(4rh SC Win)\1\mysum.cpp (1592, 2005-02-09)
C++ Primer(4rh SC Win)\1\mysum.dsp (3389, 2010-04-19)
C++ Primer(4rh SC Win)\1\mysum.dsw (518, 2010-04-19)
C++ Primer(4rh SC Win)\1\mysum.ncb (33792, 2010-04-19)
C++ Primer(4rh SC Win)\1\mysum.opt (48640, 2010-04-19)
C++ Primer(4rh SC Win)\1\mysum.plg (1192, 2010-04-19)
C++ Primer(4rh SC Win)\1\runpgms.bat (275, 2005-03-01)
C++ Primer(4rh SC Win)\1\Sales_item.h (4350, 2005-02-09)
C++ Primer(4rh SC Win)\1\userforcount.cpp (1963, 2005-02-09)
C++ Primer(4rh SC Win)\1\whilecount.cpp (1665, 2005-02-09)
C++ Primer(4rh SC Win)\10 (0, 2012-04-09)
C++ Primer(4rh SC Win)\10\3ed_query.cpp (10369, 2005-02-09)
C++ Primer(4rh SC Win)\10\3ed_query.h (4422, 2005-02-09)
C++ Primer(4rh SC Win)\10\3ed_querymain.cpp (3703, 2005-02-09)
... ...
Each of the subdirectories in this directory contains files
corresponding to the complete programs and many of the program
fragments shown in the related chapter.
BUILDING EXECUTABLES
--------------------
We provide two different source code distributions: One that
works with Microsoft Visual Studio .Net compiler and the other
that works with the GNU compiler. The source code in these
two versions are largely the same, although there are some
programs in later chapters that had to be changed to accommodate
limitations in MS handling of nested templates.
Each version of the source code contains a general makefile_template
in the top-level directory and directory-specific makefiles
in each chapter subdirectory. The makefiles are fairly simple
and we have provided comments in the hope that even those who
are not familiar with makefiles can understand how to compile
these programs by hand if so desired.
In the top level directory there is a makefile that will make
the entire source tree -- it does a cd, in turn, to each subdirectory
and makes the executables in that directory. The top level
makefile also has targets "clean" and "clobber" to remove the
object files or object and executable file respectively.
To use make on a Windows operating system you invoke the command
name "nmake":
## Windows machines
> nmake # compiles all the programs
> nmake clean # removes all the object files and stackdumps
> nmake clobber # removes executable, object and stackdump files
INPUT and OUTPUT
----------------
Because not all of the programs are complete, many of them
do not generate "sensible" output, but instead often print
some detail about the internal state of the program. To
understand the output, you will have to understand the program.
This is intentional.
The input, if any, to these programs varies:
Some programs print a prompt and wait for input on the standard input
Other programs read the standard input but do not print a prompt
Others take one or more arguments specifying a file name to read
Yet others take a file name argument and read the standard input
Each chapter subdirectory contains a README that explains the
input, if any, expected by each executable file.
RUNNING THE PROGRAMS
--------------------
Each directory contains a simple batch file named "runpgms.bat" that
runs the executables made in that directory.
Note that on some systems, the default setting for
the PATH variable does not include the current directory.
So, for example, if you try to execute
add_item
近期下载者:
相关文件:
收藏者: