这个头文件怎么回事???
先上代码;程序代码:
#include<stdio.h> #include<stdlib.h> #include<stdbool.h> int main() { unsigned long *primes=NULL; unsigned long trial=0; bool found =false; size_t total=0; size_t count=0; printf("how many numbers you want to get?you'll get at least 4 numers\n"); scanf("%u",&total); total=total<4U?4U:total; primes=(unsigned long *)malloc(total*sizeof(unsigned long)); if(primes==NULL) { printf("\nnot enough memory.\n"); return 1; } *primes=2UL; *(primes+1)=3UL; *(primes+2)=5UL; count=3U; trial=5U; while(count<total) { trial+=2UL; for(size_t i=0;i<count;i++) if(!(found=(trial%*(primes+i)))) break; if(found) *(primes+count++)=trial; } for(size_t i=0;i<total;i++) { if(!(i%5U)) printf("\n"); printf("%12lu",*(primes+i)); } printf("\n"); return 0; }这是书上的原文,结果编译时候显示"无法打开包括文件:“stdbool.h”: No such file or directory".求解