上一页 1 ··· 129 130 131 132 133 134 135 136 137 ··· 165 下一页
摘要: CUDA 眼下有两种不同的 API:Runtime API 和 Driver API,两种 API 各有其适用的范围。高级API(cuda_runtime.h)是一种C++风格的接口,构建于低级API之上。因为 runtime API 较easy使用,一開始我们会以 runetime API 为主; 阅读全文
posted @ 2017-05-03 20:59 brucemengbm 阅读(2773) 评论(0) 推荐(0)
摘要: 简洁的代码实现选项卡切换效果:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" 阅读全文
posted @ 2017-05-03 19:21 brucemengbm 阅读(219) 评论(0) 推荐(0)
摘要: source insight是一款非常好的c语言的程序编辑器。方便对project管理,方便程序的阅读和编辑。查找功能使用十分频繁。选项较多,与其他软件的查找功能也类似,以下对英文版的查找功能,做简单说明: 查找參数: whole words only : 全字匹配查找 case sensitive 阅读全文
posted @ 2017-05-03 18:42 brucemengbm 阅读(7427) 评论(0) 推荐(0)
摘要: Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 20782 Accepted: 10473 Description Due to recent rains, water has pooled in va 阅读全文
posted @ 2017-05-03 18:41 brucemengbm 阅读(211) 评论(0) 推荐(0)
摘要: problem: Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. 阅读全文
posted @ 2017-05-03 17:11 brucemengbm 阅读(212) 评论(0) 推荐(0)
摘要: Buy the souvenirs Time Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 869 Accepted Submission(s): 2 阅读全文
posted @ 2017-05-03 15:38 brucemengbm 阅读(119) 评论(0) 推荐(0)
摘要: 近期学习了一下erlang, 编了个小程序 算法例如以下: 把參数分为三个 当前位置的前子序列(Save)(比方 -5, 1,2,-1, _, ... ) 当前位置为_时, 前子序列就是 1,2,-1 以及此子序列的和(CurSum) ( 1,2,-1的 CurSum 是 2) 剩余的数 Rest; 阅读全文
posted @ 2017-05-03 14:26 brucemengbm 阅读(365) 评论(0) 推荐(0)
摘要: unity里的图片在生成时会压缩成资源文件,有时客户想自己放一些图片用unity显示,就必须载入外部图片。 大体思路:用Application.streamingAssetsPath或Application.dataPath来指定存放图片的相对路径。用DirectoryInfo获得目录。遍历后Fil 阅读全文
posted @ 2017-05-03 13:15 brucemengbm 阅读(4808) 评论(0) 推荐(0)
摘要: 数据如今是这种,我想确定出type列中的news和image。。。。甚至以后有其它值,他们分别有多少个。 SELECT type, count(1) AS counts FROM material GROUP BY type count(1),代表统计第一列。写上1 比写 *的效率高! 数据如今是这 阅读全文
posted @ 2017-05-03 12:16 brucemengbm 阅读(3843) 评论(0) 推荐(0)
摘要: 1.示意图 2.自己定义控件SwitchView public class SwitchView extends View { public static final String TAG = SwitchView.class.getSimpleName(); // 状态 public static 阅读全文
posted @ 2017-05-03 10:58 brucemengbm 阅读(445) 评论(0) 推荐(0)
上一页 1 ··· 129 130 131 132 133 134 135 136 137 ··· 165 下一页