Up and Running
29
1-4.
Write another function called
sum
that
takes two
int
arguments and returns
their sum. How can you modify the template in Listing 1-9 to test your new
function?
1-5.
C++
has a vibrant online community, and the internet is awash with excel-
lent C++ related material. Investigate the CppCast podcast at
http://cppcast
.com/
. Search for CppCon and C++Now videos available on YouTube. Add
https://cppreference.com/
and
http://www.cplusplus.com/
to your browser’s
bookmarks.
1-6.
Finally, download a copy of the International
Organization for Standard-
ization (ISO) C++ 17 Standard from
https://isocpp.org/std/the-standard/
.
Unfortunately, the official ISO standard is copyrighted and must be purchased.
Fortunately, you can download a “draft,” free of charge,
that differs only cos-
metically from the official version.
Note
Because the ISO standard’s page numbers differ from version to ver-
sion, this book will refer to specific sections using the same naming
schema as the standard itself. This schema cites sections by enclosing
the section name with square brackets. Subsections are appended with
period separation. For example, to cite the section on the C++ Object
Model, which is contained in the Introduction section, you would write
[intro.object].
Dostları ilə paylaş: