码迷,mamicode.com
首页 > 其他好文
子集枚举的几种方法
生成{0,1,2,3,...,n-1} 所有子集的三种方法 #include #include using namespace std; const int N = 10005; //增量构造法 //void psubset(int n, int *a, int cur) //{ // for(int i = 0; i < cur; ++i) printf("%d ", a[i]); ...
分类:其他好文   时间:2014-11-19 18:37:15    阅读次数:134
关于报错The specified child already has a parent的解决办法
报错信息为:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.首先,如果你看到这篇文章,说...
分类:其他好文   时间:2014-11-19 18:34:29    阅读次数:119
TCP/IP拥塞控制
TCP/IP拥塞控制包括:慢启动和拥塞避免。其操作流程如下所述:初始化。拥塞窗口cwnd = 1,慢启动门限ssthresh = 65535如果没有发生拥塞 若 cwnd = ssthresh 则执行拥塞避免,cwnd = cwnd + 1/cwnd。相当于发送字节数以线性方式上升如果发...
分类:其他好文   时间:2014-11-19 18:33:36    阅读次数:170
BZOJ3751: [NOIP2014]解方程
既然bzoj上有这道题了就把这个坑填了吧。。。题解见:http://blog.csdn.net/popoqqq/article/details/40984859话说这个解法如果当时想到冲突的概率很小的话应该就能想出来233代码: 1 #include 2 3 #include 4 5 ...
分类:其他好文   时间:2014-11-19 18:34:25    阅读次数:244
Yosemite 10.10.1 製作U盤安裝盤
本人算是有強迫症吧。每逢系統有新的升級,基本上會重裝系統,要的就是乾乾淨淨。Yosemite又出新的版本了,不打算在線升級,直接下載官方「鏡像」重裝系統,全盤格式化硬盤,沒辦法,強迫症而已!!!準備工具:至少8G U盤一個,最好是USB3.0,不然你的耐心將是很大的考驗。本人使用的是「MBP OSX...
分类:其他好文   时间:2014-11-19 18:33:25    阅读次数:132
容易网CEO陈从容:用分享成就生活之美
与客户分享便利,与员工分享成长,与生活分享愉悦。予人玫瑰,手有余香。“拥有值得分享的人和事物,亦有值得被分享的人和事物”,这就是陈从容对于美好生活的定义。米色无袖洋装搭配同色系的单鞋配件,温柔的卷发衬着典雅的淡妆。初见陈从容,记者很难将眼前这个亲切柔美的名媛与想象中精明干练的女强人联系在一起。然而随...
分类:其他好文   时间:2014-11-19 18:33:53    阅读次数:202
Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:其他好文   时间:2014-11-19 18:31:49    阅读次数:137
OC基本语法——NSArray
NSarray 常用语法// 数组赋值的时候 以 nil 结束 //在数组里面不能存放nil的对象 // NSArray *array1 = [NSArray arrayWithObjects:@"122" ,@"acv",@"dyh", nil]; NSArra...
分类:其他好文   时间:2014-11-19 18:30:03    阅读次数:140
hdu 4389 数位DP
1 /* 2 查询一段区间,有多少能被它各个数位之和整除的个数 3 */ 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int dp[11][82][82][82];//分别表示第i位,前缀数字各个和j,模k,余x1...
分类:其他好文   时间:2014-11-19 18:28:42    阅读次数:126
解决juqery easyui combobox只能选择问题
1.首先设定框为 combobox样式,该字段值为了进行值的显示 检查人员 --%> --%> --%> 2.增加...
分类:其他好文   时间:2014-11-19 18:31:10    阅读次数:95
throw new Exception
throw new Exception("自己写的抛出错误的原因").用这句的是原因,我们已经知道有一个错误存在,然后用这个抛出错误的原因让使用这个代码的人知道这是为什么,这一般是做基础部分的人用的。比较:public doube 除法(double a,double b){if(b==0){thr...
分类:其他好文   时间:2014-11-19 18:27:07    阅读次数:183
[Bhatia.Matrix Analysis.Solutions to Exercises and Problems]ExI.4.1
Let $x,y,z$ be linearly independent vectors in $\scrH$. Find a necessary and sufficient condition that a vector $w$ mush satisfy in order that the bil...
分类:其他好文   时间:2014-11-19 18:28:24    阅读次数:183
redis学习大全
http://blog.csdn.net/menergy/article/details/17577985http://blog.sina.com.cn/s/blog_64008ed70102uya3.html池化使用jedis(1)新建redis.properties文件,内容如下#最大分配的对象...
分类:其他好文   时间:2014-11-19 18:25:52    阅读次数:211
颜色转16进制
functionRGB2Hex(rgb){ varre=rgb.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");//利用正则表达式去掉多余的部分 varhexColor="#"; varhex=['0','1','2','3','4','5','6','7'...
分类:其他好文   时间:2014-11-19 18:27:09    阅读次数:116
[译]Stairway to Integration Services Level 14 - 项目转换(SSIS 2008 ~ SSIS 2012)
介绍本文中我们会用SSDT把第一个SSIS项目转换为 SSIS 2012, 为什么要升级到2012? 你可能想使用SSIS 2012新的特性. 又或者想使用 SSIS 2012 Catalog. 想要使用 Catalog, 你的项目必须转为 Project Deployment Model 我们会在...
分类:其他好文   时间:2014-11-19 18:25:05    阅读次数:224
Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他好文   时间:2014-11-19 18:24:27    阅读次数:147
4pdf
http://www.cnblogs.com/haocool/archive/2013/03/16/2962547.html
分类:其他好文   时间:2014-11-19 18:27:17    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!