c99之后引入#include <stdbool.h>可以使用bool
#include <stdbool.h>
for example
#include <stdio.h>
#include <stdbool.h>
int main(){
        bool x = true;
        if(x){
                printf("pppppp");
        }
        return 0;
}
#include <stdbool.h>
for example
#include <stdio.h>
#include <stdbool.h>
int main(){
        bool x = true;
        if(x){
                printf("pppppp");
        }
        return 0;
}
2019-10-08
举报