Programming Fundamentals
par Poowapong Srivijarn
1. loop
1.1. while loop
2. arrays
3. variable
3.1. user defined variable
3.1.1. local variable
3.1.1.1. เป็นตัวแปรที่กำหนดไว้ในฟังชั่นนั้นๆจะใช้ได้แต่ในฟังชั้นนั้นฟังชั่นเดียว
3.1.2. global variable
3.1.2.1. เป็นตัวแปรที่กำหนดอยู่นอกฟังชั่นและสามารถใช้ได้ในทุกๆฟังชั่น
3.2. system defined variable
3.2.1. เป็นฟังชั่นที่ไม่ต้องกำหนดค่า
3.2.1.1. ตัวอย่างเช่น
3.2.1.1.1. height
3.2.1.1.2. width
4. functions
4.1. system functions
4.1.1. ฟังก์ชั่นที่เรียกใช้ได้เลย ไม่ต้องประกาศ
4.1.1.1. ตัวอย่างเช่น
4.1.1.1.1. void setup(){...}
4.1.1.1.2. void draw(){...}
4.2. user defined functions
4.2.1. ต้องประกาศกำหนดและเรียกใช้เอง
4.2.1.1. function with out parameter
4.2.1.1.1. เป็นฟังชั่นที่ไม่มีการส่งค่า
4.2.1.2. function with parameter
4.2.1.2.1. เป็นฟังชั่นที่มีการส่งค่าให้ฟังชั่นเมื่อเรียกใช้