摘要: 1.自定义bool类型typedef enum {FALSE = 0,TRUE = !FALSE} BOOL;2.strlen函数:返回字符串的长度int strlen(char s[]){ int i; i = 0; while (s[i] != '\0') { ++i; } return i; } 阅读全文
posted @ 2012-12-05 13:41 赵治鲁 阅读(154) 评论(0) 推荐(0) 编辑