原來C裏面也有bool類型,以前只知道用 整型來判斷。 C99以後,在 <stdbool.h> 中也加入了bool類型。
bool flag = true; true的時候, 值爲1, false 爲0
原來C裏面也有bool類型,以前只知道用 整型來判斷。 C99以後,在 <stdbool.h> 中也加入了bool類型。
bool flag = true; true的時候, 值爲1, false 爲0
id="I7" marginwidth="0" marginheight="0" src="http://www.bookeba.cn/securi