C++ lecture 14

20 4 0
C++ lecture 14

Đ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

C++ Programming Lecture 14 Arrays – Part I The Hashemite University Computer Engineering Department (Adapted from the textbook slides) Outline       Introduction Arrays declarations and initialization Const variables Character arrays Static arrays Examples The Hashemite University Arrays I  Array      To refer to an element, specify   One type of data structures Consecutive group of memory locations Same name and type Static data structure in which its size remain the same during the program execution Array name and position number Format: arrayname[ position number ]   First element at position n element array c: c[ ], c[ ]…c[ n - ] The Hashemite University Arrays II  Array elements are like normal variables c[ ] = 3; cout

Ngày đăng: 12/10/2021, 21:09

Mục lục

    C++ Programming Lecture 14 Arrays – Part I

Tài liệu cùng người dùng

Tài liệu liên quan