c++ for engineers and scientists

849 876 3
 c++ for engineers and scientists

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Đây là quyển sách tiếng anh về lĩnh vực công nghệ thông tin cho sinh viên và những ai có đam mê. Quyển sách này trình về lý thuyết ,phương pháp lập trình cho ngôn ngữ C và C++.

[...]... a structured approach to an object-oriented one One reason for this is that many engineering and scientific problems can be solved efficiently and conveniently by using only C++ s structured elements The refinement approach, from structural to object-oriented programming, is the one C++ for Engineers and Scientists, Third Edition, takes Therefore, like the first two editions, this new edition begins... techniques Therefore, the importance of understanding and defining a problem, selecting and refining a solution, and understanding the relationship between analysis, design, coding, and testing is stated early and followed through with practical examples in all subsequent case studies Case Studies Starting with Chapter 2, most chapters contain a case study These case studies demonstrate and reinforce effective... 805 Appendix D Command-Line Arguments 809 Index 815 This page intentionally left blank PREFACE The C++ programming language, which includes C as a proper subset, has become the preeminent programming language in the engineering and scientific fields For most engineers and scientists, however, using the full potential of C++, which is a hybrid language containing both structured and object-oriented... the rectangle is given in centimeters and the other in meters, a conversion is necessary to compute the area Notice that in Equations 1-1a and 1-1b, units for both length and width as well as units for the conversion factor ([12 in/1 ft] in Eq 1-1a and [1 ft/12 in] in Eq 1-1b) are included in the formula The reason is that the terms for units can be multiplied and divided to provide the final unit... expanded to a complete object orientation in a pedagogically sound and achievable progression Additionally, to keep it current with the current ANSI/ISO C++ standard, this edition has several important changes and added features, including the following: • • • • • • • • Restructuring Part One to include both arrays and files, which allows using Part One as the basis for a complete semester course in C++. .. different students in C++ classes Point of Information Boxes These boxes present additional clarification of commonly used or difficult concepts, such as abstraction, lvalues and rvalues, values versus identities, flags, and stream formatting In addition, many Point of Information boxes explain alternative and advanced programming techniques, useful technical points, programming tips, and programming tricks... primary concern, and one of the distinctive features of this book, is that it has been written for students Therefore, I believe the writing style used to convey the concepts is one of the most important aspects of this book Modularity To produce readable and maintainable programs, modularity is essential C++, by its nature, is a modular language Therefore, the connection between C++ functions and modules... unit for the area:  in  Area = ft   × in = in2 /  ft  Including only the units and conversion factors in an equation, and canceling out corresponding units in the numerator and denominator, is referred to as performing a unit analysis As an example of a unit analysis for selecting a correct form of a conversion factor, assume you need to convert miles (symbol mi) to kilometers (symbol km), and. .. performed on all problems; it consists of extracting the complete input and output information supplied by the problems For this analysis, you must 1 Determine and understand the output items the program must produce 2 Determine the input items Together, these two items are referred to as the problem’s input/output (I/O) Only after determining a problem’s I/O can you select specific steps for transforming... of a rectangle by using this formula: Area = length × width [Eq 1-1] When using this formula, the units for length and width must be the same Therefore, if the length is given as 2 feet and the width as 3 inches, at least one of these units must be converted to ensure that both length and width are in the same units before the area is calculated Converting the length to inches, the rectangle’s area is

Ngày đăng: 19/03/2014, 14:07

Từ khóa liên quan

Mục lục

  • Front Cover

  • Title Page

  • Copyright

  • Contents

  • Part 1 Fundamentals of C++ Programming

    • Chapter 1 Preliminaries

      • 1.1 Preliminary One: Unit Analysis

      • 1.2 Preliminary Two: Exponential and Scientific Notations

      • 1.3 Preliminary Three: Software Development

      • 1.4 Preliminary Four: Algorithms

      • 1.5 A Closer Look: Software, Hardware, and Computer Storage

      • 1.6 Common Programming Errors

      • 1.7 Chapter Summary

      • Chapter 2 Problem Solving Using C++

        • 2.1 Introduction to C++

        • 2.2 Programming Style

        • 2.3 Data Types

        • 2.4 Arithmetic Operations

        • 2.5 Variables and Declaration Statements

        • 2.6 A Case Study: Radar Speed Traps

        • 2.7 Common Programming Errors

        • 2.8 Chapter Summary

        • Chapter 3 Assignment, Formatting, and Interactive Input

          • 3.1 Assignment Operations

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan