2015年9月14日

(一二六)单线程文件下载与断点续传

摘要: 本文讨论单线程的文件下载和断点续传,通过从本地服务器下载一个较大的文件,实现显示进度、中途暂停与断点续传。 下载过程大致如下: ①通过NSURL创建指向特定下载地址的请求,本文中下载的文件位于网站根目录的lesson1下的nav.dmg,因此URL应为http://127.0.0.1/lesso... 阅读全文

posted @ 2015-09-14 22:36 张大大123 阅读(243) 评论(0) 推荐(0) 编辑

1101. Quick Sort (25)

摘要: 题目如下: There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the piv... 阅读全文

posted @ 2015-09-14 13:29 张大大123 阅读(134) 评论(0) 推荐(0) 编辑

导航