69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
typedef short bool;
#define false 0;
#define true 1;
int main()
{
bool b = true;
printf("%d\n", b);
if (b)
{
printf("The bool value is true\n");
}
return 0;
}
[/quote]
代码有点小问题,#define 后面不应该有;分号
#include <stdio.h>
typedef short bool;
#define false 0;
#define true 1;
int main()
{
bool b = true;
printf("%d\n", b);
if (b)
{
printf("The bool value is true\n");
}
return 0;
}