设为首页 加入收藏

TOP

一步一步写算法(之单词统计)(二)
2014-11-23 23:36:32 来源: 作者: 【 】 浏览:16
Tags:步一步 算法 单词 统计
t(0 == count_word_number(NULL));

assert(0 == count_word_number(""));

assert(1 == count_word_number("hello"));

assert(3 == count_word_number("china baby hello"));

}

void test()

{

assert(0 == count_word_number(NULL));

assert(0 == count_word_number(""));

assert(1 == count_word_number("hello"));

assert(3 == count_word_number("china baby hello"));

}

总结:

1)状态机是编程人员的基本功,它和另外一种方法回调函数注册一样,使我们在日常开发中经常用到的一种方法

2)状态机是计算机网络通信的重要内容,想要对tcp-ip协议栈加深了解的朋友尤其需要重点掌握

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇一步一步写算法(之爬楼梯) 下一篇一步一步写算法(之选择排序)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: