自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 收藏
  • 关注

转载 poj 3071 Football

题意:有2^n支队伍进行比赛,每行给出这支队伍打败各支队伍的几率,求获胜几率最大的队伍 1 #include<iostream> 2 #include<string> 3 #include<cstdio> 4 #include<vector> 5 #include<queue> 6 #include<...

2014-07-31 22:10:00 39

转载 C++赋值运算符函数

为类添加赋值运算符函数:类型定义class CMyString{public: CMyString(char *pData = NULL); CMyString(const CMyString &str); ~CMyString(void); CMyString &operator=(const CMyString &...

2014-07-30 15:59:00 43

转载 linux下安装Apache(https) 服务器证书安装配置指南

安装 Apache mod_ssl.so 的一些感悟在网上找了半天,window和Linux都试了好久也不成功,Linux不成功的原因主要是不能加载 mod_ssl.so 模块安装 一般Apache 添加模块的方法,报错信息 好几百行后来 在根目录 find -name mod_ssl.so 结果如下  ./usr/lib64/httpd/modules/mod_ssl.so后来...

2014-07-29 16:33:00 109

转载 android

<?xml version="1.0" encoding="utf-8"?><AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent...

2014-07-26 15:20:00 44

转载 站在CSS3的肩上定义选择器

按上下文选择元素按祖先元素选择要格式化的元素输入ancestor,这里的ancestor是希望格式化的元素的祖先元素的选择器。输入一个空格(必不可少)。如果需要,对后续的每个祖先元素重复第(1)和 (2)步。输入descendant,这里的descendant是要格式化的元素的选择器。按父元素选择要格式化的元素输入parent,这里的pare...

2014-07-25 17:07:00 48

转载 终止延迟函数

[self performSelector:@selector(returnTextField1) withObject:nil afterDelay:5]; [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(returnTextField1) object:nil];转载于:ht...

2014-07-25 14:09:00 90

转载 有个同事办事特别让我不爽

干!转载于:https://www.cnblogs.com/baiduligang/p/4247219.html

2014-07-24 19:55:00 35

转载 Faster Alternatives to glReadPixels and glTexImage2D in OpenGL ES

In the development ofShou, I’ve been using GLSL with NEON to manipulate image rotation, scaling and color conversion, before send them to video encoder.So I need a very efficient way to transfer pixe...

2014-07-23 19:34:00 98

转载 linux学习笔记(1)-文件处理相关命令

列出文件和目录 ls (list) #ls 在终端里键入ls,并回车,就会列出当前目录的文件和目录,但是不包括隐藏文件和目录 #ls -a 列出当前目录的所有文件 #ls -al 列出当前目的所有文件的详细信息 创建目录 mkdir (make directory) #mkdir test 在当前目录创建test的目录 ...

2014-07-23 15:43:00 50

转载 C# Socket基础(一)之启动异步服务监听

本文主要是以代码为主。.NET技术交流群 199281001 .欢迎加入。//通知一个或多个正在等待的线程已发生事件。ManualResetEvent manager = new ManualResetEvent(false); 1 //负责监听的套接字 private Socket socketServer; 2 ...

2014-07-23 08:27:00 71

转载 XMemcached 中文api

变更历史2010-06-22 添加客户端分布和SASL验证两节,更新spring配置一节。 2010-06-23 添加maven依赖说明 2010-10-17 1.2.6 released 2011-01-04 1.3 released。添加failure模式和standby节点。XMemcached简介XMemcached是一个新java...

2014-07-21 15:16:00 59

转载 UVa10815.Andy's First Dictionary

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=17561391360710815Andy's First DictionaryAcceptedC++0.0582014-07-2...

2014-07-20 22:33:00 31

转载 SPOJ 10232. Distinct Primes

Arithmancy is Draco Malfoy's favorite subject, but what spoils it for him is that Hermione Granger is in his class, and she is better than him at it. Prime numbers are of mystical importance in Arith...

2014-07-20 17:52:00 277

转载 全栈JavaScript之路(七)学习 Comment 类型节点.

凝视 在DOM中,用 Comment 类型 节点表示, 构造器函数为: function Comment(){[native code]}.comment 节点的特征:nodeType:8nodeName:#comment,nodeValue: 凝视的内容,parsentNode: 可能是Element 类型节点,也有可能是Document节点.(在html ...

2014-07-20 12:21:00 53

转载 greenDAO

http://blog.csdn.net/krislight/article/details/9391455转载于:https://www.cnblogs.com/lashwang/p/3854456.html

2014-07-19 00:08:00 41

转载 c++中对齐方式

使用cout<<setiosflags(ios::right)以后,再调用 cout<<setiosflags(ios::left);无效的,你可以在调用之前加上一句 cout<<resetiosflags(ios::right);清除右对齐以后在调用 cout<<setiosflags(ios::left);就没问题了。...

2014-07-17 14:25:00 1712

转载 MVC在页面View上获取当前控制器名称、Action名称以及路由参数

有时候在封装MVC通用控件时需要在页面上获取这些数据。用以下方法即可://获取控制器名称:ViewContext.RouteData.Values["controller"].ToString();//获取Action名称:ViewContext.RouteData.Values["action"].ToString();//获取路由参数值:Vi...

2014-07-16 23:10:00 192

转载 maven构建java项目、web项目

maven构建java项目、web项目一、mvn构建web项目1安装mvn(包括path)2命令:mvn archetype:create -DgroupId=cn.edu.sdau.neat -DartifactId=Project -DarchetypeArtifactId=maven-archetype-webapp其中,archetype是mvn内置的一个插件,cr...

2014-07-16 16:35:00 51

转载 service引用

已引用attachmentManager 为例ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()); AttachmentManager attachmentManager = (...

2014-07-16 15:51:00 35

转载 rest api

host/customer/delete/1host/customer/get/keyword-祖国host/customer/get/1.xmlhost/customer/get/1.jsonhost/order/posthost/order/post/get/500.jsonrest:representation state transfer 表述性状态转移。通过mvc和mvc路由实现。这...

2014-07-16 14:01:00 60

转载 SDUT2157——Greatest Number(STL二分查找)

Greatest Number题目描述Saya likes math, because she think math can make her cleverer.One day, Kudo invited a very simple game:Given N integers, then the players choose no more than four integers fr...

2014-07-14 14:50:00 42

转载 @修饰符--python中的装饰器

http://blog.csdn.net/shangzhihaohao/article/details/6928808装饰器模式可以在不影响其他对象的情况下,以动态、透明的方式给单个对象添加职责,也能够处理那些可以撤销的职责。经常用于日志记录、性能测试等场合。想象一下这个很常见的场景,你写了一个方法只提供给以登陆的用户访问(事实上我也是通过django的@login_required才了解...

2014-07-12 11:16:00 41

转载 CKEditor+SWFUpload实现功能较为强大的编辑器(一)---CKEditor配置

CKEditor爆表的强大功能大家都有目共睹,号称最强大的在线编辑器,只要将文件复制到项目中,在添加引用,在一句代码就可以将普通的textarea变成华丽的编辑器所谓一复制,一拖,一换就大功告成但是普通的CKEditor由于会产生诸如<,>这样的危险符号,在用asp.net时必须在页面头的标签的ValidateRequest属性设置为false在WebConfi...

2014-07-07 15:47:00 94

转载 启动 SQL 建表 (学习笔记1)

7.6 初步了解通过SQLserver management studio 打开系统带的表 ,然后新建数据库,自己的数据库您对无法重新创建的表进行了更改或者启用了“阻止保存要求重新创建表的更改”选项 http://blog.csdn.net/lfsfxy9/article/details/6303812创建关系表的设计,主键的设计(主键的设计还是有参数类型要求的,还有...

2014-07-06 22:31:00 84

转载 HDU—4699 Editor 双向链表+子集和

惨。今天聪哥选了2013 多校10做训练,结果一题都没做出来。这个题目是数据结构,正好是我强项如果只是插入 删除 光标左右移动,那都小菜,用链表全解决,关键是那个Q k 要求 a1到aq的连续子序列和最大(子序列一定要以a1开头)。然后我用记录每个节点的当前最大和总体最大,这样只要知道第k个是哪个数就可以了,但由于是用的链表,并不知道第k个是哪个。。一开始试了下暴力去扫,结果TL...

2014-07-05 22:09:00 92

转载 Leetcode 3Sum Closest

Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly...

2014-07-04 11:18:00 46

转载 HDU 4652 Dice (概率DP)

DiceProblem DescriptionYou have a dice with m faces, each face contains a distinct number. We assume when we tossing the dice, each face will occur randomly and uniformly. Now you ha...

2014-07-03 18:46:00 128

转载 oracle查询语句2【转载】

本文使用的实例表结构与表的数据如下: scott.emp员工表结构如下:SQL>DESCSCOTT.EMP; NameTypeNullableDefaultComments ------------------------------------------- EMPNONUMBER(4)...

2014-07-03 18:02:00 75

转载 很好的理解遗传算法的样例

遗传算法的手工模拟计算演示样例为更好地理解遗传算法的运算过程,以下用手工计算来简单地模拟遗传算法的各 个主要运行步骤。 例:求下述二元函数的最大值: (1) 个体编码 遗传算法的运算对象是表示个体的符号串,所以必须把变量 x1, x2 编码为一种 符号串。本题中,用无符号二进制整数来表示。 因 x1...

2014-07-03 13:08:00 52

转载 Unity3D研究院之静态自动检查代码缺陷与隐患

原地址:原地址:http://www.xuanyusong.com/archives/2828代码缺陷和代码错误的最大区别是,代码缺陷不影响游戏编译,而代码错误编译都不通过。但是代码缺陷会影响游戏发布后产生的一系列BUG。。我今天无意间逛外国论坛发现的一个方法,使用了一下感觉挺给力的第一时间分享给大家。下载下来以后,它是一个文件夹把整个文件夹拷贝在你Unity的工程里面就行了。...

2014-07-02 09:49:00 50

转载 jquery click & get value of attributes of a href

http://stackoverflow.com/questions/6625667/jquery-click-get-value-of-attributes-of-a-href/* Add a listner to Group buttons */ $('a.preActNav').click(function() { alert(this.seq) ...

2014-07-01 23:08:00 39

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除