用devC++写代码运行出现bug
10 31 C:\Users\Administrator\Desktop\鱼C编译文件\数据类型\视频展示的代码1.cpp '_Bool' was not declared in this scope源代码是
int main()
{
printf("int = %d\n",sizeof(int));
printf("short int = %d\n",sizeof(short));
printf("long int = %d\n",sizeof(long));
printf("char = %d\n",sizeof(char));
printf("_Bool = $d\n",sizeof(_Bool));
printf("float = %d\n",sizeof(float));
printf("double =%d\n",sizeof(double));
printf("long double = %d\n",sizeof(long double));
return 0;
} 本帖最后由 jackz007 于 2021-11-27 21:19 编辑
用 bool 替换 _Bool 试试。
页:
[1]