Supplementary Materials - Useful Links and Notes
for CS2310 Lecture01-02, Lab01-02

#### BOOKS and SITES:

1. Some well known sites:
- https://msdn.microsoft.com/en-us/library/3bstk3k5.aspx
- http://www.cplusplus.com/doc/tutorial
- http://www.cprogramming.com
- http://www.learncpp.com/

2. Books:
- Walter Savitch. Problem Solving with C++
- H.M. Deitel & P.J. Deitel. C++ How to Program
- Stanley B. Lippman, Josee Lajoie, Barbara E. Moo. C++ Primer
- Dale and Weems Programming and Problem Solving with C++: Comprehensive

Reminder: Your primary resource should be our course materials: notes and exercises

#### Visual Studio Demo

Complete Demo of C++ Programming to create your first C++ program** with Visual Studio.

To save your time, you may copy the contents from here: VSCppSample.cpp.

**Console-mode, DEBUGGING-enabled

#### PASS

Any problem using PASS? Read this guide: PASS_Guide.pdf

#### For Curious and A++ Students:

Why cout << fixed << setprecision(5) << 123.456789  and cout << setprecision(5) << 123.456789  are different? Answer: here

Data Type Ranges (Visual C++ Language Reference): https://msdn.microsoft.com/en-us/library/s3f49ktz(v=vs.140).aspx

"Why do some values (like 0.7, 0.99999, 0.00001 etc.) behave strangely in computer programs?"

Why double is called "double"? What is a "floating point number"? Answer: here

For how the computer handles -ve numbers, read this document Signed number representations - Two's complement

Order of Evaluation - Precedence and Associativity : http://msdn.microsoft.com/en-us/library/2bxt6kc4.aspx

= vs == :
What will the following do?

x = 9;
if (x=12) {
cout << "It is twelve\n;
}