Detailed Implementation Rules of C language programming courses

Source: Internet
Author: User
Tags array example
C LanguageProgramDesign-detailed course implementation rules

Course hours: 36 + 20

Textbook: C Language Programming Tutorial, edited by Zhang Yikun, Xi'an Jiao Tong University Press

Tutorial guide: Guide to learning and experiment of C language programming course, edited by Zhang Yikun, Xi'an Jiao Tong University Press

The East portal bookstore of Jinhua campus is for sale.

 

Chapter 2 Overview 2 hours

1.1 programming and programming languages

1.2 C Programming Language

1.3 features of c Language

This chapter focuses on the basic components of C Programs and the process of program editing, compilation, connection, and execution. Other content can be used as self-taught content.

Chapter 2 Basic data types, operators, and expressions

2.1 Basic Data Types

2.1.1 c Data Type

2.1.2 Basic Data Types of C

2.2

2.2.1 integer, real type, and symbolic constant

2.2.2 constant

2.3 changes

2.3.1 variable name

2.3.2 definition of variables

2.3.3 variable value

2.4 operators and expressions

2.4.1 C Operator Overview

2.4.2 Arithmetic Operators and arithmetic expressions

2.4.3 mixed operation and type conversion between data in expressions

2.4.4 value assignment operators and value assignment expressions

Exercise: 2.7, 2.8, 2.11, 2.12, 2.13, 2.14, 2.15

Chapter 8 basic structure programming 8 hours

3.1 BASIC program structure and structured program design

3.1.1Algorithm

3.1.2 expression of the Algorithm

3.1.3 Basic Program Structure

3.1.4 Structured Program Design Method

3.2 sequential structure Program Design

3.2.1 sequence execution statement Overview

3.2.2 Data Input and Output

3.2.3 example of a sequential structure program

3.3 select Structure

3.3.1 relational and logical operations

3.3.2 if statement

3.3.3 nesting of IF Statements

3.3.4 conditional operators and conditional expressions

3.3.5 switch statement

3.4 loop structure Program Design

3.4.1 while statement

3.4.2 do-while statement

3.4.3 for statement

3.4.4 loop nesting

3.4.5 break and continue statements)

3.5 Program Design Example

Example: 3.3, 3.4, 3.9, 3.11, 3.12, 3.14, 3.16, 3.17, 3.18, 3.19, 3.21, 3.23, and 3.24

Exercise: 3.5, 3.6, 3.7, 3.9, 3.10, 3.13, 3.14, 3.15

Chapter 4 Array 4 hours

4.1 one-dimensional array

4.1.1 Definition and initialization of one-dimensional arrays

4.1.2 reference of one-dimensional array elements

4.1.3 application example

4.2 two-dimensional array

4.2.1 Definition of two-dimensional arrays

4.2.2 reference of two-dimensional array elements

4.2.3 program example

4.3 character array

4.3.1 Definition and reference of character Arrays

4.3.2 input and output of character Arrays

4.3.3 string processing functions

4.3.4 character array example

Example: Example 4.3, example 4.5, example 4.7, example 4.11, and example 4.12

Exercise: 4.14, 4.13, 4.15, 4.16, 4.19

Chapter 1 function 5 hours

5.1 Overview

5.1.1 C program structure

5.1.2 function category

5.2 define and call Functions

5.2.1 Function Definition

5.2.2 function call

5.2.3 Function Application Example

5.3 variable scope

5.3.1 Local Variables

5.3.2 global variables

5.4 nesting and recursion of functions

5.4.1 nested function call

5.4.2 recursive call of functions

9.3 compile preprocessing

9.3.1 File Inclusion # include

9.3.2 macro definition # define

Example: Example 5.1, example 5.4, example 5.5, example 5.6, and example 5.10

Exercise: 5.6, 5.8, 5.9, 5.12

Chapter 2 hours of structure and public body

6.1 structure Overview

6.1.1 Introduction of struct

6.1.2 definition of struct type

6.2 struct Variables

6.2.1 definition and initialization of struct Variables

6.2.2 references to struct Variables

6.2.3 struct variables as function parameters

6.3 struct Array

6.3.1 definition and initialization of struct Arrays

6.3.2 references to struct array elements

6.3.3 struct array as function parameter

6.4 public body (Introduction)

6.4.1 definition of public body type

6.4.2 definitions and references of public variables

6.4.2 application example

6.5 enumeration (not mentioned)

6.6 define types with typedef

6.6.1 definitions of types and their forms

6.6.2 advantages of Type Definition

Example: Example 6.1, example 6.4

Exercise: 6.3, 6.4, 6.9

Chapter 2 pointer 9 hours

7.1 concepts of address and pointer

7.1.1 variable address and variable value

7.1.2 direct and indirect access

7.1.3 pointer Concept

7.2 definition and reference of pointer Variables

7.2.1 definition and initialization of pointer Variables

7.2.2 pointer variable reference

7.2.3 Use Pointer variables as input parameters in the function to transfer variables.

7.3 pointers and Arrays

7.3.1 pointer to one-dimensional array elements

7.3.2 pointer to a multi-dimensional array element and a score group

7.3.3 use character arrays and character pointers to access strings

7.3.4 pointer array and pointer to pointer

7.4 struct and pointer

7.4.1 pointer variable pointing to struct variable

7.4.2 pointer to struct array elements

7.4.3 Use Pointer pointing to struct as function parameters

7.5 pointers and functions

7.5.1 functions that return pointer values

7.5.2 pointer to function and function parameter (not to mention)

Example: Example 7.2, example 7.5, example 7.6, example 7.7, example 7.13, and example 7.19

Exercise: 7.13, 7.15, 7.16, 7.19

Chapter 8 Document 2 hours

8.1 file Overview

8.1.1 concepts and categories of documents

8.1.2 file operation procedure

8.1.3 File Buffer

8.1.4 file pointer

8.2 open and close a file

8.2.1 open a file (fopen function)

8.2.2 file close function (fclose function)

8.3 sequential access to files

8.3.1 character read/write functions fgetc and fputc

8.3.2 string read/write functions fgets and fputs

8.3.3 formatting functions fscanf and fprintf

8.4 random read/write of Files

8.4.1 File Location

8.4.2 random file read/write

Example: Example 8.1, example 8.3, example 8.5, example 8.6, and example 8.7

Exercise: 8.5, 8.7, 8.8

Exercise Class/2 hours

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.