Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> C++

Type specifier สำหรับ boolean ใน C++ คืออะไร?

Type specifier สำหรับ boolean ใน C++ คือ bool คุณสามารถใช้ได้ดังนี้:

bool myBoolean = true;