1. Trang chủ
  2. » Công Nghệ Thông Tin

Bài giảng Kỹ thuật lập trình: Chương 4 - Trần Thị Kim Chi (tt)

55 9 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 55
Dung lượng 10,88 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Bài giảng Kỹ thuật lập trình - Chương 4: Programming techniques trình bày các nội dung: Learn how to create and use structures, learn how to pass structures to function, return structures as results of functions,... Mời các bạn cùng tham khảo.

Trang 1

Programming Techniques

Trang 2

Objectives

Trang 3

Problems

Trang 4

Problem

Trang 6

Structures

Trang 10

struct basics

Trang 11

struct examples

Trang 13

Structures Types

Trang 14

Structures Variables

Trang 15

Structures Variables (cont.)

Trang 16

Initializing Structure Variables

Trang 17

Accessing Members of a Structure Variable

Trang 18

Demo: Initializing and Accessing Members

Trang 19

Reading a Structure Member

Trang 20

Assigning Structures

Trang 21

Ex 1: struct basics

Trang 23

Ex 2: struct-to-struct assignment

Trang 25

Passing Structures to Functions

Trang 27

Passing Structures to Functions (cont.)

Trang 28

Returning Structure from Functions

Trang 29

Kích thước của struct

Trang 30

Arrays of structures

Trang 32

Arrays inside structures

Trang 33

Arrays of structures

Trang 34

Arrays inside structures

Trang 35

Array of Structures

Trang 36

Array of Structures (cont.)

Trang 39

Cấu trúc phức tạp

Trang 40

The Arrow Operator (->)

Trang 41

The Arrow Operator (->) (cont.)

Trang 42

Unions

Trang 43

Unions (continued)

Trang 44

Unions (continued)

Trang 45

So sánh struct và union

Trang 46

Example

Trang 48

Nested structures

Trang 49

Bài tập về cấu trúc

Trang 54

Bài tập về mảng cấu trúc

Ngày đăng: 11/05/2021, 01:22

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm