摘要: 视频解说~请戳 http://www.imooc.com/learn/206转载请注明:http://blog.csdn.net/eclipsexys/article/details/30748339—————————————————————————————————————————————————— 阅读全文
posted @ 2016-02-11 20:43 mengfanrong 阅读(4999) 评论(0) 推荐(0) 编辑
摘要: 获取当前时间 NSDate *now = [NSDate date]; NSLog(@”now date is: %@”, now); NSCalendar *calendar = [NSCalendar currentCalendar]; NSUInteger unitFlags = NSYear 阅读全文
posted @ 2016-02-11 20:09 mengfanrong 阅读(4162) 评论(0) 推荐(0) 编辑
摘要: 全然背包,转化为0/1背包 dp[i, j] = max(dp[i-1, j], dp[i, j - minutes[i]] + points[i]) /* ID:kevin_s1 PROG:inflate LANG:C++ */ #include <iostream> #include <cstd 阅读全文
posted @ 2016-02-11 19:18 mengfanrong 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Hauntbox 是一个开源硬件控制器,能够满足用随意传感器和控制器建立复杂的、自己主动化的萦绕在心头的电子项目。 它不须要焊接或者预先学什么知识。是全然可控制、并与Arduino插板兼容。 无需编程,就用开源支持控制器,让你出没的地方及项目轻松增加声音,并实现自己主动化! 什么是Hauntbos? 阅读全文
posted @ 2016-02-11 18:34 mengfanrong 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 在项目中使用了开源的com.handmark.pulltorefresh.library 下拉刷新组件,当中使用了PullToRefreshScrollView ,须要调用scrollTo或者scrollBy滑动到指定的位置。 直接使用PullToRefreshScrollView .scrollT 阅读全文
posted @ 2016-02-11 17:56 mengfanrong 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 更新Cocoapod之后出现故障: diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No such file or directory error: The sandbox is not in sync w 阅读全文
posted @ 2016-02-11 17:08 mengfanrong 阅读(1829) 评论(0) 推荐(0) 编辑
摘要:  注意几点: 分配内存不要使用new和delete,由于new的同一时候就把对象构造了。而我们须要的是原始内存。 所以应该使用标准库提供的allocator类来实现内存的控制。当然也能够重载operator new操作符,由于二者都是使用malloc作为底层实现,所以直接採用malloc也能够。 阅读全文
posted @ 2016-02-11 16:07 mengfanrong 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 以下是获代替码 原文地址:http://blog.csdn.net/qqmcy/article/details/28233565 // // Tools.h // // // Created by 杜甲 on 14-6-1. // //原文地址:http://blog.csdn.net/qqmcy/ 阅读全文
posted @ 2016-02-11 14:40 mengfanrong 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 因调试某个重大问题,怀疑到了内存,专门写了个測试脚本。记录一下。 撰写不易,转载请注明出处:http://blog.csdn.net/jscese/article/details/37928823 一.调试准备 首先须要开启android系统的adb功能。start adbd PC端 adb con 阅读全文
posted @ 2016-02-11 13:44 mengfanrong 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: Problem Description Everyone knows Matt enjoys playing games very much. Now, he is playing such a game. There are N rooms, each with one door. There a 阅读全文
posted @ 2016-02-11 12:29 mengfanrong 阅读(309) 评论(0) 推荐(0) 编辑
摘要: A. Dreamoon and Stairs time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Dreamoon wants to 阅读全文
posted @ 2016-02-11 11:13 mengfanrong 阅读(191) 评论(0) 推荐(0) 编辑
摘要: less 工具也是对文件或其他输出进行分页显示的工具。应该说是linux正统查看文件内容的工具。功能极其强大。less 的使用方法比起 more 更加的有弹性。使用了 less 时。更easy用来查看一个文件的内容!除此之外,在 less 里头能够拥有很多其他的搜索功能,不止能够向下搜,也能够向上搜 阅读全文
posted @ 2016-02-11 10:34 mengfanrong 阅读(298) 评论(0) 推荐(0) 编辑
摘要: mysql数据导出的方法有非常多,比如mysqldump, mysql -e 'sql' > file, 这些都能够非常方便的导出数据,但是在使用普通用户导出数据的时候,出现了问题。 1 select * into outfile "file_path" from my_table 上面的语句也是m 阅读全文
posted @ 2016-02-11 09:53 mengfanrong 阅读(6175) 评论(1) 推荐(0) 编辑
摘要: Gone Fishing Time Limit: 2000MS Memory Limit: 32768K Total Submissions: 30281 Accepted: 9124 Description John is going on a fishing trip. He has h hou 阅读全文
posted @ 2016-02-11 08:40 mengfanrong 阅读(291) 评论(0) 推荐(0) 编辑