"数据对象与计算:C语言基本数据描述与计算"

需积分: 0 0 下载量 164 浏览量 更新于2023-12-25 收藏 320KB PDF 举报
本段描述主要讲述了《从问题到程序》这本书的第二章,着重介绍了数据对象与计算的概念。计算机程序是数据的处理过程,因此必然涉及数据的描述和计算问题。举例来说,在C程序中可以写出各种表达式来描述计算过程,这些表达式包含了不同类型的数据,比如整数和实数等。为了理解和写出这些表达式,就必须熟悉C语言对各种数据的描述规定,以及这些数据在表达式中的意义和计算过程。因此,本章首先解决了C语言中各种基本数据的描述,并介绍了如何描述计算和写出能够得出所需结果的表达式。读者在这一章里将初步接触到计算机领域的许多重要概念,以及在简单程序中的应用和作用。Overall, this section primarily discussed the second chapter of the book "From Problem to Program," which focused on the concept of data objects and computation. Computer programs involve the processing of data, thus inevitably involving the description of data and computational problems. For example, in a C program, various expressions can be written to describe the calculation process, which includes different types of data such as integers and real numbers. To understand and write these expressions, it is necessary to be familiar with the description rules of various data in the C language and the meaning and calculation process of these data in the expressions. Therefore, this chapter first addresses the description of various basic data in C language and introduces how to describe calculations and write expressions that can produce the desired results. In this chapter, readers will initially encounter many important concepts in the computer field and see their application and role in simple programs.