C语言--使用技巧(一)基础类型使用篇

xiaoxiao2021-02-28  65

一、布尔型的使用

使用方法:

typedef int bool;typedef char bool;typedef enum {false, true} bool; #include <stdio.h> typedef enum {false, true} bool; bool returnTest() { return true; } int main(void) { printf(">>>>%d\r\n", returnTest()); return 0; }
转载请注明原文地址: https://www.6miu.com/read-2620528.html

最新回复(0)