Missing Code in book
I have just started to learn C++. I am using this book and when I go to the examples in Chapter 1 I follow the instruction to enter the code and build it.
I then run the program and I get a flash of the command window with hello world but in figure 1-12 it shows that there should be at least one more line of code to stop the program so I can see "press any key to continue" output and then the program should wait for a key press to continue. but it does not happen. I notice in the second example the same line should be present but it is not and the program immediately closes after displaying the text.
What lines of code are missing here?
I am beginning to believe this book was rushed to be published and simple things like this are totally overlooked. I am so far very disappointed in this book and at this point I wish I could get that $50.00 I paid for this piece of junk.
Why is there no discussion as to exactly what "nt _tmain(int argc, _TCHAR* argv[])" means other than it is a start of a program. I am already unsure here as I do not know what the values mean and the book is so convoluted
I have downloaded and checked the code and there is none for chapter 1.
I have checked the errata and there is no mention of the missing code.
Can someone help me with this?
|