วันอาทิตย์ที่ 30 สิงหาคม พ.ศ. 2558

[LAB2] SYNTAX ERROR !!



ลืมใส่ Semicolon (;)

  • Error ?
    Syntax Error,maybe a missing semicolon ?
  • Cause of problems ?
    เมื่่อเขียนบรรทัดนั้นแล้วลืมใส่ ; ทำให้โปรแกรมนี้ไม่ทำงาน
  • How you fixed it ?
    เมื่อเขียนบรรทัดนั้นเสร็จแล้วก็ใส่ ; ไว้ข้างหลังด้วย

ไม่สามารถตัวแปร float มาเก็บค่าตัวแปร int ได้
  • Error
    The method [NameFunction](float,int,float) in the type [NameFile] ?
  • Cause of problems
    ตัวแปร float ไปย้ายตัวแปร int แล้ว ทำให้โปรแกรมนี้ไม่ทำงาน
  • How you fixed it ?
    เปลี่ยนตัวแปรจาก int เป็น float

กำหนดตัวแปรพลาด
  • Error
    Cannot find anything named [Variable] ?
  • Cause of problems
    ตัวอักษรเดียวกันแต่ตัวพิมพ์ใหญ๋พิมพ์เล็กไม่เหมือนกัน เช่น W w เป็นต้น
  • How you fixed it ?
    แก้ตัวแปรให้เหมือนกันตัวแปรที่เรากำหนด 

ไม่มีความคิดเห็น:

แสดงความคิดเห็น