码迷,mamicode.com
首页 > 其他好文
如何从ST官网上下载资源STM32标准库Standard Peripheral LibrariesV3.5.0
《如何从ST官网上下载资源STM32标准库Standard Peripheral LibrariesV3.5.0》分为两种检索方式: 【1】按需要的库资源检索 【2】按芯片型号检索资源 查了网上的一些资料,发现介绍从ST官网下载STM32标准库V3.5.0的检索方式很少,自己在下载STM32标准库V3.5.0也费了很多事~...
分类:其他好文   时间:2015-05-31 12:30:13    阅读次数:268
Single Number II -- leetcode
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without usi...
分类:其他好文   时间:2015-05-31 12:31:13    阅读次数:118
Hadoop学习---第四篇Mapreducer里的Partitioner
Partitioner就是对map输出的key进行分组,不同的组可以指定不同的reduce task处理; Partition功能由partitioner的实现子类来实现 每写一段代码都会加深理解,程序里记录了自己的理解 FlowBean类源码: package cn.zxl.flowcountpartitioner; import java.io.DataInput; import j...
分类:其他好文   时间:2015-05-31 12:30:41    阅读次数:274
hdu4339 Query
Problem Description You are given two strings s1[0..l1], s2[0..l2] and Q - number of queries. Your task is to answer next queries:   1) 1 a i c - you should set i-th character in a-th string to c...
分类:其他好文   时间:2015-05-31 12:30:58    阅读次数:131
The specified child already has a parent. You must call removeView() on the child's parent first.
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. 今天写代码要给AlertDialog加一个自定义的View 然后就报错了,报错是因为再一次触发加载布局view的时候由于在vie...
分类:其他好文   时间:2015-05-31 12:28:30    阅读次数:174
笔记(const)
常量#include using namespace std; int main() { int i = 12; const int ci = 12; const volatile int *ip2 = &i; cout << *ip2 << endl; i = 14; cout << *ip2 << endl; retu...
分类:其他好文   时间:2015-05-31 12:29:15    阅读次数:122
流媒体技术之概念
最近霉霉的歌曲在中国市场下架了,因为Tayler认为Spotify(流媒体音乐服务平台)影响了唱片的销售量和歌曲下载量。这样做法其实很正常,Taylor 在Spotify挣不到钱,所收取的费用几乎等同于免费。在音乐流媒体服务的冲击之下,实体唱片业与数字音乐销量不断下滑。据悉,此次Taylor Swift的需求是全球同步的,国内音乐平台也要配合下架所有Taylor Swift歌曲的免费试听业务,...
分类:其他好文   时间:2015-05-31 12:29:26    阅读次数:188
PO-->OOP+AOP-->SOA软件开发思想演化
一、概述     PO(Procedure Oriented,面向过程编程):是一种以过程为中心的编程思想。就是分析出解决问题所需要的步骤,然后用函数把这些步骤一步一步实现,使用的时候一个一个依次调用就可以了。     OOP(Object Oriented Programming,面向对象编程):是一种计算机编程架构。OOP 的一条基本原则是计算机程序是由单个能够起到子程序作用的单元...
分类:其他好文   时间:2015-05-31 12:30:06    阅读次数:147
openlayers实现画圆
本文讲述如何在openlayers中实现画圆。...
分类:其他好文   时间:2015-05-31 12:29:44    阅读次数:120
机房重构注意事项总结
1、登录(操作员)    允许多用户同时登录 2、注册(操作员)    对于注册信息,注册成功后及时清除。    注册的卡号可以按照一定的编码规律自动分配          注册时需要填写的信息比较多,而机房收费系统是面向学校的学生,那么是否可以先将学校和学生的信息提前录入到数据库中,这样用户可以在界面中直接选择信息,避免用户直接输入,即可以减少错误又可以提高效率。    ...
分类:其他好文   时间:2015-05-31 12:29:12    阅读次数:113
HDU 5247 找连续数(RMQ+滑窗)
找连续数 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 281    Accepted Submission(s): 102 Problem Description 小度熊拿到了一个无序的数组,对于这个数组,小度熊想知道...
分类:其他好文   时间:2015-05-31 12:28:12    阅读次数:125
Sharepoint2013部署ADFS 报new-sptrustedIdentityTokenIssuer:the trust provider certificate already exist
在做sharepoint2013的adfs部署时,根据MSDN的步骤到新建身份验证程序时,powershell中报“ADFS new-sptrustedIdentityTokenIssuer:the trust provider certificate already exist”错误,无法继续往下执行,报这个问题是之前我已经注册过一次sptrustedIdentityTokenIssuer,所以...
分类:其他好文   时间:2015-05-31 12:26:40    阅读次数:176
LeetCode Contains Duplicate II
Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between iand j is at most k.思路分析:...
分类:其他好文   时间:2015-05-31 12:26:41    阅读次数:87
2015百度之星初赛(1)题解(1001)
1001:  简单的贪心题。首先我们特判必赢和必输的两种状态(maxm),然后对战斗力排序,找到在0~m之间最大的战斗力作为初始值, 然后,每一次将攻击力提升至 下一个彪形大汉的值,同时k--,如果一旦发现打不过,那么必输,break。注意战斗力1e12,用__int64 #include #include #include #include #include using namespace ...
分类:其他好文   时间:2015-05-31 12:26:58    阅读次数:127
HDU5242.Game——贪心
http://acm.hdu.edu.cn/showproblem.php?pid=5242一棵树有n个结点,n-1条边,每个结点有个权值。每次可以获得从根节点走到叶子结点所有结点的权值和,但是每个结点的权值只能使用一次。求走k次所能获得的最大权值和dfs1求出所有结点到根节点的权值和,然后按从大到小排序,根据这个顺序,dfs2求出每个结点到根节点的权值和,遍历过的结点的权值不能用。 然后再从大到...
分类:其他好文   时间:2015-05-31 12:25:25    阅读次数:103
子类继承父类,但是每个子类又不能全部拥有基类的属性
编写一个动物基类,动物基类的属性有跑,飞,游泳三个,让猪、鱼、鸟这三个类继承动物类,但是每个对应的只能有自己特有的属性,比如猪肯定不能飞(飞猪?肥猪)!#include "stdafx.h" #include using namespace std;enum ANIMAL_TYPES { fish, bird, pig, }; //枚举template...
分类:其他好文   时间:2015-05-31 12:26:47    阅读次数:130
LeetCode Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is...
分类:其他好文   时间:2015-05-31 12:26:15    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!