码迷,mamicode.com
首页 > 其他好文
随机数例子
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 随机数 8 { .....
分类:其他好文   时间:2015-12-08 10:06:55    阅读次数:112
canvas动画
用canvas做动画的过程跟dom运动的原理一样,都是利用setInterval来连续执行从而达到动画的效果,canvas一般分为以下几个步骤:1.声明一个数组用来存储画布里面需要画的图形的数据,然后通过setInterval来不断往里面添加数据,例如:setInterval(function(){...
分类:其他好文   时间:2015-12-08 10:06:40    阅读次数:128
POJ-1028(字符串模拟)
Web NavigationTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 31906Accepted: 14242Description Standard web browsers contain features to move ...
分类:其他好文   时间:2015-12-08 10:06:09    阅读次数:200
POJ1363
思路:1~N个数每来一个数就入栈,若栈顶元素与 给出序列中l所指向的元素相等则出栈直到栈为空或不相等为止,如最后栈为空则Yes不为空则No#include"cstdio"#include"cstring"using namespace std;const int MAXN=1005;int a[MA...
分类:其他好文   时间:2015-12-08 10:06:09    阅读次数:158
[学习OpenCV攻略][012][读取、修改、保存图像]
使用 imread 读取图像,图像路径为 imageName ,图像按BGR格式读取。image = imread( imageName, CV_LOAD_IMAGE_COLOR);将RGB图像转化为灰度格式。cvtColor( image, gray_image, CV_BGR2GRAY );使用...
分类:其他好文   时间:2015-12-08 10:07:33    阅读次数:132
leetcode Number of Islands
题目连接https://leetcode.com/problems/number-of-islands/Number of IslandsDescriptionGiven a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number ...
分类:其他好文   时间:2015-12-08 10:06:27    阅读次数:157
类的定义、方法练习
package com.java; //包名public class Bird { //类名//属性String YanSe;String ZhongLei;double FanLiang;//方法public void weiShi(double FanLiang){System.out.p...
分类:其他好文   时间:2015-12-08 10:03:54    阅读次数:136
[学习OpenCV攻略][011][显示图片]
学习资料:http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/tutorials.html包含头文件core.hpp:包含了基本的定义和库highgui.hpp:包含了基本的输入输出操作#include #include 创建一个矩...
分类:其他好文   时间:2015-12-08 10:06:45    阅读次数:159
PS给一张图片添加背景色
如图所示的一个图层。首先双击进行解锁。如图所示。图层中的锁图样消失。再选择背景图层的颜色,如图所示。作出如下图所示的选择,就可以成功的为图层创建了一个背景色了。
分类:其他好文   时间:2015-12-08 10:05:45    阅读次数:144
leetcode Remove Linked List Elements
题目连接https://leetcode.com/problems/remove-linked-list-elements/Remove Linked List ElementsDescriptionRemove all elements from a linked list of integers...
分类:其他好文   时间:2015-12-08 10:04:01    阅读次数:149
leetcode Reverse Bits
题目连接https://leetcode.com/problems/reverse-bits/Reverse BitsDescriptionReverse bits of a given 32 bits unsigned integer.For example, given input 432615...
分类:其他好文   时间:2015-12-08 10:04:29    阅读次数:109
SAP 差旅报销集成方案的实现
跨国集团通常都会有一个财务共享中心SSC的集中处理业务部门,用于统计来自各个公司的差旅报销,而1).传统的OA审批 虽然审批流是优势存在着需要SAP数据二次录入,数据不同步等困难,2).如果终端用户都采用SAP进行报销,则会增加SAP许可证费用,且SAP workflow二次开发成本过高,开发难度大...
分类:其他好文   时间:2015-12-08 10:03:08    阅读次数:251
ArcEngine 图层无闪烁刷新
使用AE的同行经常会遇到这样的问题,图层刷新。目前常用的有以下几种方法:1.完全刷新MapControl.Refresh();2.局部刷新MapControl.Refresh(esriViewDrawPhase.esriViewAll,layerOrElement,envelope)或者其他的如:I...
分类:其他好文   时间:2015-12-08 10:03:26    阅读次数:244
在framework中打包xib
废话不多说,直接上图1、Copy Bundle Resources 中加入相关xib2、这里是重点,调用的时候不能直接写[objc]view plaincopy[[NSBundlemainBundle]loadNibNamed:@"yourXibName"owner:niloptions:nil]而...
分类:其他好文   时间:2015-12-08 10:03:29    阅读次数:215
POJ 1823 Hotel 线段树
题目链接和上一题差不多....第三种操作只需要输出maxx[1]的值就可以。#include #include #include #include #include #include #include #include #include #include using namespace std;#d...
分类:其他好文   时间:2015-12-08 10:03:01    阅读次数:169
file的getPath getAbsolutePath和getCanonicalPath的区别
转自:http://www.blogjava.net/dreamstone/archive/2007/08/08/134968.htmlfile的这几个取得path的方法各有不同,下边说说详细的区别概念上的区别:(内容来自jdk,个人感觉这个描述信息,只能让明白的人明白,不明白的人看起来还是有点难度...
分类:其他好文   时间:2015-12-08 10:02:50    阅读次数:147
面向对象 对象属性 例
package com.hanqi;public class Car { //属性 成员变量 //车的颜色 String YanSe; //车的品牌 String PinPain; //油箱容量 double YouXi...
分类:其他好文   时间:2015-12-08 10:01:12    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!