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
Xem thêm: