首页
Java
登录
6mi
u
盘
搜
搜 索
Java
C语言--使用技巧(一)基础类型使用篇
C语言--使用技巧(一)基础类型使用篇
xiaoxiao
2021-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
)