69,382
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
//#include <stdbool.h>
int main(void) /*Beginning of main program*/
{
//bool flag = true;
_Bool flag = 1;
if(flag)
printf("To C, or not to C ,that is the question!\n");
return 0;
}
typedef _boolean
{
true = 1,
false = !true
} boolean;
typedef _boolean
{
false = 0,
true = !false
} boolean;
typedef _boolean
{
true = 0,
false = !true
} boolean;
// -std=c99 or -std=gnuc99
#include <stdbool.h>
typedef _Bool boolean;
//or #define boolean bool
#include <stdio.h>
#define true 1
#define false 0
typedef enum boolean {true, false, 0, 1} boolean;
int main()
{
boolean i = true;
printf("%s is %d.\n", i, i);
return 0;
}