Wrox Home  
Search

Topic: C# and C++

Ivor Horton's Beginning Visual C++ 2013 (1118845714) cover image

Ivor Horton's Beginning Visual C++ 2013

Ivor Horton
ISBN: 978-1-118-84571-4
Paperback
960 pages
May 2014
Other Available Formats: Wiley E-Text
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $59.99 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
2 37 Error in Text
Currently reads:
Defining the _UNICODE symbol causes the Windows header files to assume Unicode characters are the default. Defining _UNICODE does the same for the C runtime header files that come with the C++ standard library.
Should be:
Defining the UNICODE symbol causes the Windows header files to assume Unicode characters are the default. Defining _UNICODE does the same for the C runtime header files that come with the C++ standard library.
3 June 2015
2 62 Error in Text
(Sentence under the table)
Currently Reads:
There are also const_cast, static_cast, dynamic_cast, reinterpret_cast, and typeid that are not included in the table because they are never ambiguous.
Should Read:
The const_cast, static_cast, dynamic_cast, reinterpret_cast,and type_id are included in the table but they are never ambiguous.
30 June 2015
2 68 Text Correction
Figure 2-8:
CURRENTLY reads:
"result: 0x01 0 0 0 0 0 0 0 0"
Should read:
"result: 0x01 0 0 0 0 0 0 0 1"
12/19/14
2 70 Text Correction: Error in Code
Bottom line, page 70, figure 2-10:
Should Read:
"00010..."
(with all digits further to the right as '0')
12/4/14
2 82 Error in Code
(at the end of the Try It Out section) Currently Reads:
suit value: 0
Add 10 to another: 11
Sky color value: 4
Incremented sky color: 14
Should Read:
suit value: 0
Add 10 to another: 11

Sky color value: 4
Incremented sky color: 14
30 June 2015
3 104 Error in Code
"Try it Out" section right before "How It Works"
Currently Reads:
The output from this program is:
We have 1 cake.
We have 2 cakes.
Should Read:
The output from this program is:
We have 1 cake.
We have 2 cakes.

16 July 2015
4 136 Error in Text
(second sentence in the first paragraph after the code)
Currently Reads:
The compiler knows that the array elements are of type double, so t will be of type double.
Should Read:
The compiler knows that the array elements are of type double, so temperature will be of type double.
5 June 2015
137 Figure error
... The arrangement of this array is illustrated in Figure 4-2. But Figure 4-2 describes syntax for cin.getline() example. Figure 4-2 is wrong.
05/01/15
4 141 Figure error
Figures 4-2 and 4-3 have been swapped
10/19/2015
5 186 Error in Code
(the output to the code in the "Try it Out" section)
Currently Reads:
5.0 cubed = 125
3.0 cubed = 27
x = 81
Should read:
5.0 cubed = 125
3.0 cubed = 27
x= power(3.0, power(2.0, 2.0));
16 July 2015
5 186 Error in Code
2nd line of code at the top of the page
Currently Reads:
double x {1};                                      // Different x from that in function power
Should Read:
double x {3}; // Different x from that in function power
3/Aug/2015
5 185 Error in Code
185 last 2 lines of code on the page
Currently reads:
int main()
{
Should read:
int main(void)
{
16 July 2015
207 Text Correction: Error in Code
Currently Reads:
double num {5.0}; // Test value double* ptr {}; // Pointer to returned value ptr = treble(num); out << endl << "Three times num = " << 3.0*num; Should Read:
double num {5.0}; // Test value double* ptr {}; // Pointer to returned value ptr = treble(num); cout << endl << "Three times num = " << 3.0*num;
12/19/14
210 Text Correction: Error in Code
Currently Reads:
int len {_countof(data)}
Should Read:
int len {_countof(data)};
12/19/14
Error in Print
Listing for Ex8_11.cpp produces error C2797 in Visual Studio 2013 Update 3. Prior to Update 3 this was OK. What is the fix for this please?
05/01/15
6 252 Error in Code
5th line of code
Currently Reads:
int index {};                         // Keeps track of current character position
Should read:
size_t index {}; //Keeps track of current character position

3/Aug/2015
6 255 Error in Code
half way through code block at the bottom of the page
Currently Reads:
char message [31] {"Invalid character in number: "}
Should read:
char message [31] {"Invalid character in number: "};
3/Aug/2015
301 Text Correction: Error in Code
4th line from top of page
Currently Reads:
Box(double lv, double wv, double hv) : Should Read:
CBox(double lv, double wv, double hv) :
12/19/14
368 Text Correction: Error in Code
Currently Reads:
"moreBoxes.aAdd(CBox { 5.0, 4.0, 6.0 });"
Should Read:
"moreBoxes.add(CBox { 5.0, 4.0, 6.0 });"
12/19/14
8 375 Error in Code
Currently Reads:
Creating Person{string{"Ivor"} , string{"Horton"}} - rvalue arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Ivor Horton
Creating Person{first , second} - lvalue arguments:
Lvalue Name constructor.
Lvalue Name constructor.
Person is Fred Fernackerpan
Creating Person{first , string{"Bloggs"}} - lvalue, rvalue arguments:
Lvalue Name constructor.
Rvalue Name constructor.
Person is Fred Bloggs
Creating Person{"Richard" , "Horton"} - rvalue const char* arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Richard Horton

Should Read:
Creating Person{string{"Ivor"} , string{"Horton"}} - rvalue arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Ivor Horton
Creating Person{first , second} - lvalue arguments:
Lvalue Name constructor.
Lvalue Name constructor.
Person is Fred Fernackerpan
Creating Person{first , string{"Bloggs"}} - lvalue, rvalue arguments:
Lvalue Name constructor.
Rvalue Name constructor.
Person is Fred Bloggs
Creating Person{"Richard" , "Horton"} - rvalue const char* arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Richard Horton

19-Aug -2015
8 376 Error in Code
Currently Reads:
Creating Person{string{"Ivor"} , string{"Horton"}} - rvalue arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Ivor Horton
Creating Person{first , second} - lvalue arguments:
Lvalue Name constructor.
Lvalue Name constructor.
Person is Fred Fernackerpan
Creating Person{first , string{"Bloggs"}} - lvalue, rvalue arguments:
Lvalue Name constructor.
Rvalue Name constructor.
Person is Fred Bloggs
Creating Person{"Richard" , "Horton"} - rvalue const char* arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Richard Horton

Should Read:
Creating Person{string{"Ivor"} , string{"Horton"}} - rvalue arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Ivor Horton
Creating Person{first , second} - lvalue arguments:
Lvalue Name constructor.
Lvalue Name constructor.
Person is Fred Fernackerpan
Creating Person{first , string{"Bloggs"}} - lvalue, rvalue arguments:
Lvalue Name constructor.
Rvalue Name constructor.
Person is Fred Bloggs
Creating Person{"Richard" , "Horton"} - rvalue const char* arguments:
Rvalue Name constructor.
Rvalue Name constructor.
Person is Richard Horton

19-Aug -2015
8 395 Error in Code
Currently reads:
Using std::rel_ops::operator<=;
Should be:
using std::rel_ops::operator<=;

19-Aug -2015
398 Text Correction: Error in Code
Currently Reads:
"double volume () @@@remove MG OK IH@@@) const"
should be:
"double volume () const"
12/19/14
8 408 Error in Code
On pg 408 in the Try it Out Ex8_14.cpp:
Currently Reads:
std::getline(cin, firstname, '\n');
Should be
std::getline(std::cin, firstname, '\n')

19-Aug -2015
8 409 Error in Code
Currently Reads:
Enter a first name or press Enter to end: Marilyn
Enter a second name: Munroe
Enter Marilyn's age: 26
Enter a first name or press Enter to end: Tom
Enter a second name: Crews
Enter Tom's age: 45
Enter a first name or press Enter to end: Arnold
Enter a second name: Weisseneggar
Enter Arnold's age: 52
Enter a first name or press Enter to end:
The names you entered are:
Marilyn Munroe aged 26.
Tom Crews aged 45.
Arnold Weisseneggar aged 52.
Done!!

Should be
Enter a first name or press Enter to end: Marilyn
Enter a second name: Munroe
Enter Marilyn's age: 26
Enter a first name or press Enter to end: Tom
Enter a second name: Crews
Enter Tom's age: 45
Enter a first name or press Enter to end: Arnold
Enter a second name: Weisseneggar
Enter Arnold's age: 52
Enter a first name or press Enter to end:
The names you entered are:
Marilyn Munroe aged 26.
Tom Crews aged 45.
Arnold Weisseneggar aged 52.
Done!!

19-Aug -2015
508 Text Correction: Error in Code
Currently reads:
"std::sort(stdbegin(people), stdend(people);"
should read:
"std::sort(std::begin(people), std::end(people);"
01/07/14
62 Errata in Text
After the current row 7, a row line 8 should be inserted as follows (where | indicate columns and are not characters in the table) :

8 | < <= > >= | Left

The remaining existing rows 8-17 should be renumbered as 9-18
11-Dec-15
Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free