ข้ามไปยังเนื้อหา

DECLARE แอลเลย์

  • แอลเลย์ เก็บหลายค่าภายใต้ชื่อเดียว
  • DECLARE Score : ARRAY[1:5] OF INTEGER สร้างพื้นที่สำหรับ integer 5 ตัว
  • ตัวเลข 1:5 คือ index แรกและสุดท้าย

A 1-D array Score with five cells; the index runs 1 to 5, so Score[1] is the first value

เอกสารประกอบการเรียน

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP