一个关于bool型全局变量的问题,敬请高手指教。
#include<stdlib.h>
bool abool;
main()
{
abool=true;
if(abool==true);
printf("In this program i use a wholly bool variable.");
}
请问一下,为什么这个程序会出错!
#include<stdlib.h>
bool abool;
main()
{
abool=true;
if(abool==true);
printf("In this program i use a wholly bool variable.");
}
请问一下,为什么这个程序会出错!
再加一个头文件 #include<stdio.h>
谢谢你!!!