码迷,mamicode.com
首页 > 其他好文
在树莓派上安装opencv
先安装运行库 sudo?apt-get?update sudo?apt-get?upgrade sudo?apt-get?install?-y?build-essential sudo?apt-get?install?-y?cmake? sudo?apt-get?install?-y?pkg-config? sudo?apt-get?i...
分类:其他好文   时间:2015-08-15 23:15:45    阅读次数:799
TypeScript系列1-1.5版本新特性
1. 简介 ? ? 随着PC端快速向移动端迁移,移动(体验)优先的概念也越来越响。由于ReactJS目前移动端仅仅支持iOS,因此移动端Web开发框架只能选择: AngularJS/Angula2 + Ionic框架 + Cordova。想要学习好Angula2...
分类:其他好文   时间:2015-08-15 23:15:27    阅读次数:432
软考问题
MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_NextPart_01D0D7AA.9B0B5E10" 此文档为“单个文件网页”,也称为“Web 档案”文件。如果您看到此消息,但是您的浏览器或编辑器不支持“Web...
分类:其他好文   时间:2015-08-15 23:14:44    阅读次数:461
使用poi组件读取excle文件
关键代码如下: public void importPostGroupQuality() throws Exception { //InputStream fis=new FileInputStream("E:\\员工年度考核.xls"); InputStream fis=this.path(); //解析出来的...
分类:其他好文   时间:2015-08-15 23:13:02    阅读次数:474
要求循环输入一个数,判断是否为回文数
import java.util.Scanner; public class HuiWenShu { public static void main(String[] args) { Scanner input = new Scanner(System.in); char c = 'y';                                  ...
分类:其他好文   时间:2015-08-15 23:13:27    阅读次数:436
Light 1008
H - 字 Time Limit:500MS     Memory Limit:32768KB     64bit IO Format:%lld & %llu Submit Status Practice LightOJ 1008 Description Fibsieve had a fantabulous (yes, it's an actual wo...
分类:其他好文   时间:2015-08-15 23:11:27    阅读次数:163
Scala入门到精通——第二十七节 Scala操纵XML
本节主要内容 XML 字面量 XML内容提取 XML对象序列化及反序列化 XML文件读取与保存 XML模式匹配 1. XML 字面量XML是一种非常重要的半结构化数据表示方式,目前大量的应用依赖于XML,这些应用或利用XML作为数据交换格式,或利用XML进行文件配置等。像JAVA、C++及其它流行的程序开发语言都是依赖于第三方库来实现XML的操作,例如JAVA经常通过JDOM,DOM4J等XML处理...
分类:其他好文   时间:2015-08-15 23:10:59    阅读次数:278
A题之找K个最小的数
剑指offer上的一道题:输入n个整数,找出最小的k个数。例如输入4、5、1、6、2、7、3、8共8个数,最小的4个数为:1、2、3、4。 分析: 解法一: 可以把它看车数组排序问题,先对数组排序,再取数组前k个数。各个排序算法中,快排是性价比比较高的了,时间事件复杂度为O(n*logn)。还有没有其他解法呢? 解法二: 快排思想派上用场了。快排算法中,我们通常要找一个参...
分类:其他好文   时间:2015-08-15 23:12:55    阅读次数:276
hdu 5391 Zball in Tina Town
点击此处即可传送 hdu 5391 唉,我以为带7的基本上都是素数,所以一直拿1007算,结果。。。。唉,一把辛酸泪啊,算了,不说了,上正事: Problem DescriptionTina Town is a friendly place. People there care about each other.Tina has a ball called zball. Zball is magi...
分类:其他好文   时间:2015-08-15 23:11:02    阅读次数:269
【React】热热身:Hello World
引入React可以使用Bower下载Reactbower install react 引入react(.min).js和JSXTransformer.js。在React组件中可以不使用JSX,但建议使用 JSX。引入 JSXTransformer.js 库是来实现在浏览器里的代码转换,上线之后最好把JSX代码转换成正常的js代码,然后去掉JSXTransformer.js的引用。JSX代码写在<sc...
分类:其他好文   时间:2015-08-15 23:11:51    阅读次数:168
hdu5387Clock
//给出时间,求时针和分针,时针和秒针,分针和秒针的夹角 #include #include #include using namespace std ; #define abs(a) a < 0 ? -a :a int s , t , h ; int gcd(int a , int b) { if(b == 0)return a ;...
分类:其他好文   时间:2015-08-15 23:11:37    阅读次数:124
博客迁移-爱T-blog
从2012.8月后 博客迁移到http://blog.itiwin.cn  爱T-blog php即使博客 magento博客...
分类:其他好文   时间:2015-08-15 23:10:37    阅读次数:193
Topcoder SRM 345 Div1 250
题意:起初在(0,0),要到(x,y)去,每次只能横向或纵向移动。横向移动时,若所在直线y为偶数,那么只能往x轴正方向移动,若为奇数,只能往x轴反方向移动;纵向移动时,若所在直线x为偶数,那么只能往y轴正方向移动,若为奇数,只能往y轴反方向移动。问从起点到终点的最短距离是多少?x,y 范围是[-1e6, 1e6]解法:一开始想到bfs(想到很自然),将(0, 0), (x, y), (x, 0),...
分类:其他好文   时间:2015-08-15 23:08:47    阅读次数:149
Zball in Tina Town(判素数)
Zball in Tina Town    Accepts: 397    Submissions: 2463  Time Limit: 3000/1500 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Problem Description Tina Town is a...
分类:其他好文   时间:2015-08-15 23:09:37    阅读次数:263
实现reverse字符串
不分配额外空间,直接就地反转字符串,另外还要注意null字符。 void reverse(char *str) { char *end = str; char tmp; if (str) { while (*end)//找出字符串末尾 { ++end; } --end;//回退一个字符,最后一个为null的字符 /*从字符串首尾开始交换两个字符,直到两个指针在中间碰头*...
分类:其他好文   时间:2015-08-15 23:10:37    阅读次数:180
BestCoder Round #51 (div.2) A
Zball in Tina Town Accepts: 397 Submissions: 2463 Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) 问题描述 Tina Town 是一个善良友好的地方,这里的每一个人都互相关心。 Tina有一个球,...
分类:其他好文   时间:2015-08-15 23:07:54    阅读次数:168
LeetCode(237)Delete Node in a Linked List
题目Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3,...
分类:其他好文   时间:2015-08-15 23:08:44    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!