码迷,mamicode.com
首页 >  
搜索关键字:reference    ( 5445个结果)
贪心专题
贪心: 原则是根据固定的一个或几个属性进行抉择.达到缩小规模的目的. split to steps and shrink scope reference最近做的几个贪心题目 hdu 1052(田忌赛马) 根据马的速度排序,然后两边最小值,最大值的判断.这样做是因为两端的选择是唯一的,TJ最弱的马/最强的如果可以战胜那就是最好的抉择,不然就让其去当炮灰.(减少规模)#include...
分类:其他好文   时间:2015-05-15 21:33:24    阅读次数:218
LeetCode "Course Schedule II"
This one lets you print out one topological sorted sequence. Either BFS or DFS works. But there are tricky details.This is my reference:https://leetco...
分类:其他好文   时间:2015-05-15 08:57:26    阅读次数:144
Android Bundle类
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。根据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:移动开发   时间:2015-05-14 23:41:55    阅读次数:218
C++11 thread::detach(2)
原文地址:http://www.cplusplus.com/reference/thread/thread/detach/public member functionstd::thread::detachvoid detach();Detach threadDetaches the thread r...
分类:编程语言   时间:2015-05-14 20:31:23    阅读次数:152
PetaPoco入门(二)
1. Petapoco基本用法1.1. 创建示例工程首先创建一个工程文件,为了便于展示数据这里创建一个类型为:WindowsApplication的工程文件。命名为:PetapocoTest。程序最终布局及功能预览如下:1.2. 添加petapoco包在项目文件的Reference上右键, 选择“管...
分类:其他好文   时间:2015-05-14 00:57:10    阅读次数:152
coco2d-js 节点的属性和动作
官网:http://cn.cocos2d-x.org/文档:http://cn.cocos2d-x.org/doc/jsdoc/symbols/cc.Node.html#onEnter http://www.cocos2d-x.org/reference/html5-js/V3.0/index.ht...
分类:Web程序   时间:2015-05-13 19:35:50    阅读次数:264
how many different bst given n nodes?
Reference:http://stackoverflow.com/questions/3042412/with-n-no-of-nodes-how-many-different-binary-and-binary-search-trees-possibRecursion:t(0) = 1t(1)...
分类:其他好文   时间:2015-05-13 18:50:26    阅读次数:98
vs2012.net WebService简单的创建、使用、验证、发布后更改引用地址、web reference、service reference
工作中使用到较多的webservice,学习了一段时间,在这里总结一下在vs中使用webservice的过程和理解。 一 创建(服务器端)   在vs中穿件webservice是比较简单的。下面记录一下步骤。 步骤1:新建一个web项目,注意不能是类库。 步骤2:在新建的web项目上,添加新项--web服务; 自动生成的代码如下: /// /// WebService1 的摘...
分类:Web程序   时间:2015-05-13 13:04:32    阅读次数:282
Java 为值传递而不是引用传递
——referenceJava is Pass by Value and Not Pass by Reference其实这个问题是一个非常初级的问题,相关的概念初学者早已掌握,但是时间长了还是容易混淆,特此总结一下一、值传递和引用传递 首先这里我们先看下两者的异同:值传递:方法调用时,实际参数把它....
分类:编程语言   时间:2015-05-13 00:23:40    阅读次数:186
条款10:令operator=返回一个reference to *this
下面是示例:...
分类:其他好文   时间:2015-05-12 23:00:53    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!