HelloWorld开发者社区

www.helloworld.net - 开发者专属的技术社区

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年1月22日

摘要: 1 //递归反向打印字符串 2 void reversePrint(const char *str) 3 { 4 if(str == NULL) 5 return; 6 if(*str == '\0') 7 return; 8 rev... 阅读全文
posted @ 2016-01-22 12:00 HelloWorld开发者社区 阅读(261) 评论(0) 推荐(0) 编辑

摘要: 1 //递归求字符串的长度 2 int RecurseLength(const char *str) 3 { 4 if(str == NULL || *str == '\0') 5 return 0; 6 7 if(*str == '\0') 8 return 0... 阅读全文
posted @ 2016-01-22 11:40 HelloWorld开发者社区 阅读(438) 评论(0) 推荐(0) 编辑