fbpx
วิกิพีเดีย

การเขียนโปรแกรมเชิงคำสั่ง


ในวิชาวิทยาการคอมพิวเตอร์ การเขียนโปรแกรมเชิงคำสั่ง หรือ การเขียนโปรแกรมเชิงอิมพาราทีฟ (imperative programming) คือ กระบวนทัศน์การเขียนโปรแกรม (programming paradigm) ที่ใช้สเตตเมนต์ (statements หรือ คำสั่ง) ในการเปลี่ยนสถานะ (state) ของโปรแกรม

การเขียนโปรแกรมเชิงคำสั่งนั้นมีความคล้ายคลึงกับการพูดออกคำสั่ง (imperative mood) ในภาษาธรรมชาติ (natural languages) ของมนุษย์ที่ใช้ในการออกคำสั่งระหว่างกัน โปรแกรมเชิงคำสั่งนั้นจะมีเซตคำสั่ง (commands) สำหรับคอมพิวเตอร์ให้ทำงานตามคำสั่งนั้น ๆ การเขียนโปรแกรมเชิงคำสั่งจะโฟกัสในการอธิบายว่า "โปรแกรมทำงานอย่างไร"

การเขียนโปรแกรมเชิงคำสั่ง ตรงข้ามกับ การเขียนโปรแกรมเชิงประกาศ (declarative programming / การเขียนโปรแกรมเชิงดีคลาราทีฟ) ซึ่งโฟกัสที่ผลลัพท์ของโปรแกรม เน้นว่า "ผลลัพทคืออะไร" โดยไม่ได้เน้นวิธีการที่คอมพิวเตอร์ใช้ในการแก้ปัญหา ไม่ระบุรายละเอียดลำดับขั้นตอนว่าจะต้องทำอะไรบ้าง

การเข, ยนโปรแกรมเช, งคำส, ในว, ชาว, ทยาการคอมพ, วเตอร, หร, การเข, ยนโปรแกรมเช, งอ, มพาราท, imperative, programming, กระบวนท, ศน, การเข, ยนโปรแกรม, programming, paradigm, ใช, สเตตเมนต, statements, หร, คำส, ในการเปล, ยนสถานะ, state, ของโปรแกรมน, นม, ความคล, ายคล. inwichawithyakarkhxmphiwetxr karekhiynopraekrmechingkhasng hrux karekhiynopraekrmechingximpharathif imperative programming khux krabwnthsnkarekhiynopraekrm programming paradigm thiichsettemnt statements hrux khasng inkarepliynsthana state khxngopraekrmkarekhiynopraekrmechingkhasngnnmikhwamkhlaykhlungkbkarphudxxkkhasng imperative mood inphasathrrmchati natural languages khxngmnusythiichinkarxxkkhasngrahwangkn opraekrmechingkhasngnncamiestkhasng commands sahrbkhxmphiwetxrihthangantamkhasngnn karekhiynopraekrmechingkhasngcaofksinkarxthibaywa opraekrmthanganxyangir karekhiynopraekrmechingkhasng trngkhamkb karekhiynopraekrmechingprakas declarative programming karekhiynopraekrmechingdikhlarathif sungofksthiphllphthkhxngopraekrm ennwa phllphthkhuxxair odyimidennwithikarthikhxmphiwetxrichinkaraekpyha imraburaylaexiydladbkhntxnwacatxngthaxairbangekhathungcak https th wikipedia org w index php title karekhiynopraekrmechingkhasng amp oldid 9117989, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

บทความ

, อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม