比思論壇

標題: C++ By Example(二) Using C++ operators (Greg Perry英文版)【清晰PDF】 [打印本頁]

作者: lcj1985316    時間: 2016-5-4 20:33
標題: C++ By Example(二) Using C++ operators (Greg Perry英文版)【清晰PDF】
本帖最後由 lcj1985316 於 2016-5-5 06:38 編輯

If you are dreading this chapter because you don’t like math—relax, C++ does all your math for you! It is a misconception that you have to be good at math to understand how to program computers. In fact, programming practice assumes the opposite is true! Your computer is your “slave,” to follow your instructions, and to do all the calculations for you. This chapter explains how C++ computes by introducing you to ♦ Primary math operators ♦ Order of operator precedence ♦ Assignment statements ♦ Mixed data type calculations ♦ Type casting

A C++ math operator is a symbol used for adding, subtracting,multiplying, dividing, and other operations. C++ operators are not always mathematical in nature, but many are. Table 8.1 lists these operator symbols and their primary meanings.


Most of these operators work in the familiar way you expect them to. Multiplication, addition, and subtraction produce the same results (and the division operator usually does) as those produced with a calculator. Table 8.2 illustrates four of these simple operators.



下载地址:
http://edu.ctfile.com/info/K2D54307

http://www.yimuhe.com/file-3044379.html

作者: xw119    時間: 2016-5-5 00:01
英文版东西有权威性
作者: xw119    時間: 2016-5-5 00:02
继续技术流哦
作者: 蒼之濤    時間: 2016-5-5 07:47
我肯定是不会编程的




歡迎光臨 比思論壇 (http://108.170.10.237/) Powered by Discuz! X2.5