码迷,mamicode.com
首页 > 其他好文
EFM328位IO的操作
归根结底就是对8个IO口的读写问题。你可以自己编写两个函数WriteData()和ReadData();还是分别调用GPIO位操作的函数。 void WriteData(u8 data) {    //分别操作与液晶连接的IO口,顺序是由高位到低位     GPIO_WriteBit(GPIO号, Pin号,(data & 0x80) >> 7 );     GPIO_WriteBit...
分类:其他好文   时间:2015-05-04 15:36:55    阅读次数:214
杭电ACM1027——Ignatius and the Princess II
这题,找了好久,都没有找到是什么规律,百度了之后,才知道是第几个最小的排列是枚举排列的第几个。 真是长知识了!!~ 知道了这样的规律之后,就可以很快的写出了,algorithm这个头文件中又一个枚举排列的函数next_permutation,第i个最小的排列,就是调用next_permutation  i - 1次之后的那个排列。next_permutation同样的适用与可重集,也就...
分类:其他好文   时间:2015-05-04 15:37:23    阅读次数:162
hdu2296 AC自动机+DP
http://acm.hdu.edu.cn/showproblem.php?pid=2296 Problem Description For the hope of a forever love, Steven is planning to send a ring to Jane with a romantic string engraved on. The string's le...
分类:其他好文   时间:2015-05-04 15:37:13    阅读次数:212
高精度计算-大整数乘法
大整数乘法问题描述求两个不超过 200 位的非负整数的积。 输入数据 有两行,每行是一个不超过 200 位的非负整数,没有多余的前导 0。 输出要求 一行,即相乘后的结果。结果里不能有多余的前导 0,即如果结果是 342,那么就不能 输出为 0342。输入样例 12345678900 98765432100 输出样例 1219326311126352690000解题思路乘法规律,一...
分类:其他好文   时间:2015-05-04 15:36:12    阅读次数:171
HealthKit开发教程之HealthKit的主要类型数据
HealthKit开发教程之HealthKit的主要类型数据...
分类:其他好文   时间:2015-05-04 15:34:23    阅读次数:201
3D、描边字体特效的简单实现方法
用GDI+VC实现简单呃字体描边、3D特效...
分类:其他好文   时间:2015-05-04 15:35:39    阅读次数:283
[LeetCode] Combination Sum II
Combination Sum II Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only b...
分类:其他好文   时间:2015-05-04 15:33:51    阅读次数:91
单例模式
单件模式是指确保一个类只有一个实例,并提供全局访问点。...
分类:其他好文   时间:2015-05-04 15:34:23    阅读次数:101
leetcode-Remove Duplicates from Sorted Array
题目描述 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in ...
分类:其他好文   时间:2015-05-04 15:35:18    阅读次数:140
AE(After Effect) 自带抠像插件详解
早在影视特效还在SGI平台称霸天下的时候,After Effect(以下简称AE)就是一款最早面向低端个人平台(PC&Mac)的合成软件。凭借Adobe公司称霸印刷出版界的实力,AE现在在低端平台上拥有最广泛的用户群。所以它的各类合成工具和方法也比较具有代表性。       在AE最新发布的5.0版本中,软件内置的抠像工具就达9种之多。设计者将他们作为一类效果放在了Effect | Keying...
分类:其他好文   时间:2015-05-04 15:35:15    阅读次数:216
dw 下拉菜单
下拉菜单实现代码: 无标题文档 *{ padding:0; margin:0; } #caidan{ width:810px; height:auto; margin:10px auto; } #caidan ul{ list-style-type:none; } #caidan ul li.mu{ width:90px; height:40px; f...
分类:其他好文   时间:2015-05-04 15:35:27    阅读次数:80
LeetCode 18 4sum 找出4个数,使得他们的和等于target
题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note:...
分类:其他好文   时间:2015-05-04 15:33:43    阅读次数:145
dw 选项卡
选项卡实现代码: 无标题文档 #biaodan { height: 600px; width: 365px; padding-top: 100px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; font: "微软雅黑" 14px/30px; } body { ma...
分类:其他好文   时间:2015-05-04 15:35:05    阅读次数:204
图像背景虚化
背景 在一幅摄影作品中,背景虚化可以很好地烘托主体,但是对于一些摄影爱好者来说,大光圈太贵;长焦镜头使用时限制太多;手中相机功能太低……虽条件不足,但又很想拍出主体突出、背景虚化的照片,这时候该怎么办呢?接下来本文简要介绍背景虚化的步骤。...
分类:其他好文   时间:2015-05-04 15:31:37    阅读次数:307
欢迎使用CSDN-markdown编辑器
Java 动态代理 所谓代理,是指具有与代理元(被代理的对象)具有相同的接口的类,客户端必须通过代理与被代理的目标类交互,而代理一般在交互的过程中(交互前后),进行某些特别的处理。 Proxy模式是很常见的模式,在我们生活中处处可见,例如我们买火车票不一定非要到火车站去买,可以到一些火车票的代售点去买。寄信不一定是自己去寄,可以把信委托给邮局,由邮局把信送到目的地。 以上的也...
分类:其他好文   时间:2015-05-04 15:34:05    阅读次数:106
RecommenderEvaluator实现对推荐程序的评分测试程序
mahout实现训练数据和评分...
分类:其他好文   时间:2015-05-04 15:31:19    阅读次数:117
[LeetCode] Path Sum
Path Sum Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below bina...
分类:其他好文   时间:2015-05-04 15:30:49    阅读次数:113
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!