Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Summary

All right, this is enough on C++ types and expression evaluation. As you see, it is always a good idea to think about the ranges of types you are using. This is important both from the point of view of portability and from the point of view of correctness of the results. Unless you have specific reasons to do otherwise (like your boss tells you to), use types int and double, but make sure that they work correctly for you.

We covered a lot of ground in this chapter, and it might take some time for the material to settle down. Experiment with the examples, and rely on the material covered in Chapter 2 as the foundation of your work in C++. Do not use advanced features too much, too soon.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial