Informática

Páginas: 104 (25767 palabras) Publicado: 20 de febrero de 2013
Introduction to C using lcc-win

jacob navia

Contents
1 Introduction to C 1.1 Why learn C? . . . . . . . . . . . . . . . . . . . . . . . 1.2 Program organization . . . . . . . . . . . . . . . . . . 1.3 Hello . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program input . . . . . . . . . . . . . . . . . . What are “function parameters” ? . . . . . . . . Console mode programs andwindows programs 1.4 An overview of the compilation process . . . . . . . . . 1.4.1 The run time environment . . . . . . . . . . . . We wrote the program first . . . . . . . . . . . We compiled our design . . . . . . . . . . . . . Run time . . . . . . . . . . . . . . . . . . . . . 1.5 An overview of the standard libraries . . . . . . . . . . The “stdheaders.h” include file . . . . . . . . . 1.5.1Passing arguments to a program . . . . . . . . Implementation details . . . . . . . . . . . . . . 1.6 Iteration constructs . . . . . . . . . . . . . . . . . . . . 1.6.1 for . . . . . . . . . . . . . . . . . . . . . . . . . 1.6.2 while . . . . . . . . . . . . . . . . . . . . . . . . 1.6.3 do . . . . . . . . . . . . . . . . . . . . . . . . . 1.6.4 break and continue . . . . . . . . . . . . . . . . 1.7Types . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.7.1 What is a type? . . . . . . . . . . . . . . . . . 1.7.2 Types classification . . . . . . . . . . . . . . . . 1.7.3 Integer types . . . . . . . . . . . . . . . . . . . 1.7.4 Floating types . . . . . . . . . . . . . . . . . . 1.7.5 Compatible types . . . . . . . . . . . . . . . . . 1.7.6 Incomplete types . . . . . . . . . . . . . . . .. 1.7.7 Qualified types . . . . . . . . . . . . . . . . . . 1.7.8 Casting . . . . . . . . . . . . . . . . . . . . . . 1.7.9 The basic types . . . . . . . . . . . . . . . . . . 1.8 Declarations and definitions . . . . . . . . . . . . . . . 1.8.1 Variable declaration . . . . . . . . . . . . . . . 1.8.2 Function declarations . . . . . . . . . . . . . . 1.8.3 Function definitions . . . . . . . . . . . .. . . 1.8.4 Scope of identifiers . . . . . . . . . . . . . . . . 3 11 11 12 13 14 15 16 17 18 18 19 19 19 20 20 23 23 23 25 25 25 25 26 27 29 29 29 30 30 31 31 31 33 35 36 37

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . .

1.8.5 Linkage and duration of objects . . 1.8.6 Variable definition . . . . . . . . . 1.8.7 Statement syntax . . . . . . . . . . 1.9 Errors and warnings . . . . . . . . . . . . 1.10 Input and output . . . . . . . . . . . . . . 1.10.1 Predefined devices . . . . . . . . . 1.10.2 The typical sequence of operations 1.10.3 Examples . . . . . . . . . . . . . . 1.10.4Other input/output functions . . . The current position . . . . . . . . 1.10.5 File buffering . . . . . . . . . . . . Error conditions . . . . . . . . . . 1.11 Commenting the source code . . . . . . . 1.11.1 Describing a function . . . . . . . . 1.11.2 Describing a file . . . . . . . . . . 1.12 An overview of the whole language . . . . 1.12.1 Statements . . . . . . . . . . . . . 1.12.2 Declarations . .. . . . . . . . . . . 1.12.3 Pre-processor . . . . . . . . . . . . 1.12.4 Control-flow . . . . . . . . . . . . . 1.12.5 Extensions of lcc-win . . . . . . . . 2 A closer view 2.1 Identifiers. . . . . . . . . . . . . . . . . 2.1.1 Identifier scope and linkage . . 2.2 Constants . . . . . . . . . . . . . . . . 2.2.1 Evaluation of constants . . . . Constant expressions . . . . . . 2.2.2 Integer...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informatica
  • Informática
  • Informatica
  • Informatica

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS