2008年10月2日 星期四

bool

在C99有新增了bool型態,定義在stdbool.h。然而若所使用的編譯器還沒支援到C99的話,可以用:
enum bool {false, true};
如此也可以達到同樣的目的。

0 意見: