TAILIEUCHUNG - Lecture C++ for everyone (2nd edition): Chapter 2 - Cay S. Horstmann

Chapter 2 - Fundamental data types. numbers and character strings (such as the ones on this display board) are important data types in any C++ program. In this chapter, you will learn how to work with numbers and text, and how to write simple programs that perform useful tasks with them. | C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Chapter Two: Fundamental Data Types Slides by Evan Gallagher C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Chapter Goals To be able to define and initialize variables and constants To understand the properties and limitations of integer and floating-point numbers To write arithmetic expressions and assignment statements in C++ To appreciate the importance of comments and good code layout To create programs that read and process input, and display the results To process strings, using the standard C++ string type Variables A variable is used to store information: can contain one piece of information at a time. has an identifier: The programmer picks a good name A good name describes the contents of the variable or what the variable will be used for the contents of the variable: the name of the variable C++ for Everyone by Cay Horstmann Copyright

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.