C Programming
C Programming
少于1000 人选课
更新日期:2025/04/26
开课时间2021/09/14 - 2022/01/15
课程周期18 周
开课状态已结课
每周学时-
课程简介

C language is one of the most popular and widely used advanced programming languages in the world. As a professional and technical course, it not only plays an important role in the field of computer science and technology and its application, but also is an important tool course in many related science and engineering majors. C language is the basic course to enter the programming gate. The development idea of its structured and modular procedure-oriented programming lays a solid foundation for the following other courses (object-oriented programming, data structure, algorithm design and analysis). The course will introduce the humanities and engineering professional ethics related to the computer specialty, as well as the latest technology and research progress in different fields, including Internet of things technology, cloud computing technology, big data and artificial intelligence.

In order to meet the needs of overseas students, the course group has set up a C language programming course using pure English. All the members of the course group have the experience of studying abroad and have designed this course according to the actual needs of overseas students to learn C language. This course is taught from two aspects: the cultivation of programming logical and the teaching of programming ability. So that, students can learn programming skills on the premise of understanding flow chart, algorithm and program concept.

Through the study of this course, students can learn to think about problems from the perspective of computer, cultivate students' logical thinking ability and procedure-oriented programming method; train students to use C language as a programming tool to prepare programs with clear structure and well readability, design test cases, complete program tests, and have the ability to independent design and implement procedure-oriented applications. It lays a theoretical and practical foundation for further learning the development of complex software system.

课程大纲

1 Introduction

1.1 Course objective

1.2 Programming software devcpp

1.3 Textbook

1.4 Course schedule

1.5 C language smart education platform

2 Flow

2.1 Sequential flow

2.2 Branch flow

2.3 Flow expressions

2.4 Logical structure of flows

Unit test for flow

Homework1

3 Program

3.1 Concept of program

3.2 Program execution characteristics

3.3 Computer components

3.4 Computer workflow

3.5 Program components

3.6 Computer data processing

3.7 Problem solving with computer

3.8 Knowledge map of C program

3.9 Steps of problem solving

3.10 Example coding: incentive system

3.11 Flow of program development

4 C Language

4.1 Basic C components in sample program

4.2 Library function and file inclusion

4.3 C library

4.4 Child function

4.5 Coding style requirements

5 Algorithm

5.1 Concept of algorithm

5.2 Definition and key elements of algorithm

5.3 Example coding: price guessing(1)

5.4 Example coding: price guessing(2)

5.5 Method of program development

5.6 Effectiveness of algorithm

5.7 Example coding: average score computing

5.8 Universality of algorithm

5.9 Example coding: chickens & rabbits in a cage 1

5.10 Example coding: chickens & rabbits in a cage 2

5.11 Example coding: N factorial

5.12 Keys of algorithm design

6 Data types and operations (1)

6.1 Shopping receipt example about data

6.2 Example coding: shopping receipt

6.3 Type of constants

6.4 Variable storage

6.5 Variable initialization

6.6 Key elements of variables

6.7 Basic data system

6.8 Binary system

6.9 Complement representation

6.10 Storage of signed integers

6.11 Trap of float-point numbers

6.12 Storage of float type

7 Data types and operations (2)

7.1 Type of data operations

7.2 Operators in C and precedence

7.3 Associativity of operators

7.4 Example coding: time conversion

7.5 Increment & decrement & relational operators

7.6 Example coding: triangle

7.7 Basic type conversion

7.8 Type conversion rules

7.9 Debugger

7.10 Conditional operator

7.11 Sizeof operator

8 Input and output

8.1 Stdio library

8.2 Example coding: heart with changing color

8.3 Output functions

8.4 String output function

8.5 Formatted output function

8.6 Example coding: 520 Chinese characters

8.7 Input functions

8.8 Gets function

8.9 Example coding: student information

8.10 Scanf function

9 Sequential, branch and loop structures

9.1 Sequential structure

9.2 Proximity rule of if-else

9.3 Example coding: maximum number

9.4 Example coding: maximum number solution 2

9.5 Switch-case

9.6 Example coding: 5-level grading

9.7 Example coding: a-x relationship

9.8 Loop introduction

9.9 Key elements of loop

9.10 Example coding: 4 different loop structures

9.11 Example coding: while statement

9.12 While and for comparison

9.13 Do while loops

9.14 Example coding: number counting

9.15 For loops

9.16 Example coding: chickens and rabbits in the same cage

9.17 Infinite loops and jumping out

9.18 Continue and goto

10 Array

10.1 Array concept

10.2 Example coding: reverse 100 numbers

10.3 Example coding: calculate average course grade

10.4 Array initialization

10.5 Memory layout of array

10.6 Example coding: binary search

10.7 Example coding: Fibonacci sequence and 2D array

10.8 Example coding: password verification

10.9 Example coding: Caesar code cracking

10.10 String array

11 Pointer

11.1 Name and address

11.2 Computer memory

11.3 What is a pointer

11.4 How to define a pointer

11.5 Pointer operation

11.6 Rule of pointer offsets

11.7 Pointer summary

11.8 Example coding: pointer definition

11.9 Example coding: pointer offset

11.10 Advanced usage of pointers