Skip to content

Instantly share code, notes, and snippets.

@Silica163
Last active September 13, 2024 14:47
Show Gist options
  • Select an option

  • Save Silica163/7f574fe06ebbdcc502c44e11d0ffa463 to your computer and use it in GitHub Desktop.

Select an option

Save Silica163/7f574fe06ebbdcc502c44e11d0ffa463 to your computer and use it in GitHub Desktop.
ใช้คำหลัก(keyword)ภาษาไทยใน c เขียนเล่นๆเท่านั้นแหละ
/*
นี่แค่เขียนเล่นๆเอาฮาเฉยๆ
ใครเอาไปใช้ก็ช่วยบอกหน่อยว่าเป็นยังไงบ้าง
*/
typedef จำนวนเต็ม int;
typedef จำนวนเต็มบวก unsigned int;
typedef ตัวอักษร char;
typedef จำนวนจริง float;
#define อัตโนมัติ auto
#define ไปที่ goto
#define ระหว่าง while
#define น้อยกว่า <
#define มากกว่า >
#define เท่ากับ ==
#define และ &&
#define หรือ ||
#define ถ้า if
#define นอกจากนั้น else
#define ทำ do
#define ค่าคงที่ const
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment