首页 > 编程知识 正文

c++枚举类型赋值,C语言定义枚举

时间:2023-05-04 11:32:29 阅读:189701 作者:2396

#包含

enum

bell='',

后退空间='',

返回='',

newline='',

vtab='V',

SPACE=' '

(;

枚举布尔false=0,true }匹配标志;

voidmain () )

intindex=0;

int countofletter=0;

int countof空间=0;

charstrbldst='I'mElyefod ';

匹配flag=false;

for (; str索引!='0 '; index )

if (空间!=str索引)

计数ofletter;

else

匹配flag=(枚举布尔) 1;

countof空间;

printf ' %% dtimes %',match标志? ' match':'notmatch ',countofspace,NEWLINE;

打印(count of letters 3360 %%%)、countofletter、NEWLINE和RETURN;

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。