版本14和16间的区别 (跳过第2版)
于2006-07-28 18:29:26修订的的版本14
大小: 1734
编辑: czk
备注:
于2007-07-15 21:39:12修订的的版本16
大小: 2481
编辑: czk
备注:
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
= Chapter 1 - A Tutorial Introduction =

[[TableOfContents]]
= Chapter 1 - A Tutorial Introduction 第1章 导言 =
行号 6: 行号 4:

在本书的开篇,我们首先概要地介绍C语言,主要是通过实际的程序引入C语言的基本元素,至于其中的具体细节、规则以及一些例外情况,在此暂时不多做讨论。因此,本章不准备完整、详细地讨论C语言中的一些技术(当然,这里所举的所有例子都是正确的)。我们是希望读者能尽快地写出有用的程序,为此,本章将重点介绍一些基本概念,比如变量与常量、算术运算、控制流、函数、基本输入/输出等。而对于编写较大型程序所涉及到的一些重要特性,比如指针、结构、C语言中十分丰富的运算符集合、部分控制流语句以及标准库等,本章将暂不做讨论。
行号 11: 行号 11:
[[Include(^A Tutorial Introduction/.*, , editlink)]] [[Include(^A Tutorial Introduction/.*, ,titlesonly, editlink)]]

Chapter 1 - A Tutorial Introduction 第1章 导言

Let us begin with a quick introduction in C. Our aim is to show the essential elements of the language in real programs, but without getting bogged down in details, rules, and exceptions. At this point, we are not trying to be complete or even precise (save that the examples are meant to be correct). We want to get you as quickly as possible to the point where you can write useful programs, and to do that we have to concentrate on the basics: variables and constants, arithmetic, control flow, functions, and the rudiments of input and output. We are intentionally leaving out of this chapter features of C that are important for writing bigger programs. These include pointers, structures, most of C's rich set of operators, several control-flow statements, and the standard library.

在本书的开篇,我们首先概要地介绍C语言,主要是通过实际的程序引入C语言的基本元素,至于其中的具体细节、规则以及一些例外情况,在此暂时不多做讨论。因此,本章不准备完整、详细地讨论C语言中的一些技术(当然,这里所举的所有例子都是正确的)。我们是希望读者能尽快地写出有用的程序,为此,本章将重点介绍一些基本概念,比如变量与常量、算术运算、控制流、函数、基本输入/输出等。而对于编写较大型程序所涉及到的一些重要特性,比如指针、结构、C语言中十分丰富的运算符集合、部分控制流语句以及标准库等,本章将暂不做讨论。

This approach and its drawbacks. Most notable is that the complete story on any particular feature is not found here, and the tutorial, by being brief, may also be misleading. And because the examples do not use the full power of C, they are not as concise and elegant as they might be. We have tried to minimize these effects, but be warned. Another drawback is that later chapters will necessarily repeat some of this chapter. We hope that the repetition will help you more than it annoys.

In any case, experienced programmers should be able to extrapolate from the material in this chapter to their own programming needs. Beginners should supplement it by writing small, similar programs of their own. Both groups can use it as a framework on which to hang the more detailed descriptions that begin in Chapter 2.

Include(^A Tutorial Introduction/.*, ,titlesonly, editlink)

TCPL/1_A_Tutorial_Introduction (2008-02-23 15:34:53由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.