码迷,mamicode.com
首页 >  
搜索关键字:target action回调    ( 24278个结果
boost socket 最直接有效地设定ip和port的代码……
哎,第一,我想说官网的教程尚需完善第二:是我自己基础不好,所以费了点劲就是这样:tcp::endpoint end_p(boost::asio::ip::address_v4::from_string("127.0.0.1"), target_port); tcp::endpoin...
分类:其他好文   时间:2014-05-23 11:45:19    阅读次数:279
Android Ant 和 Gradle 打包流程和效率对比
一、Ant 打包:(下载ant、配置环境变量就不说了) 1、进入命令行模式,并切换到项目目录,执行如下命令为ADT创建的项目添加ant build支持: android update project -p . -t  "android-17" 2、build脚本默认target是help,所以会显示如上信息,修改target为debug或release就可以像无ant时一样编...
分类:移动开发   时间:2014-05-23 07:40:45    阅读次数:361
LeetCode: Search in Rotated Sorted Array [032]
【题目】 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no du...
分类:其他好文   时间:2014-05-22 10:43:12    阅读次数:310
LeetCode: Search Insert Position [034]
【题目】 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Here are few examples. [1,3,5,6], 5 → 2 [1,3,5,6]...
分类:其他好文   时间:2014-05-22 09:41:59    阅读次数:195
LeetCode: Search for a Range [033]
【题目】 Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found in the array, return [-1, -1]. For example, Given [5...
分类:其他好文   时间:2014-05-22 06:44:39    阅读次数:265
keil 中的一些设置
option for target 'target 1' 中: 第3选项output: select folder for objects :此选项是选择编译时产生的以希望文件,点击选择路径,不然这些文件就会生成并保存在和项目文件.prov 同个文件下,导致项目文件不好找。 第4选项listing:也是同第3选项同样原理。   第6选项c/c++:在include paths 设置h文件路...
分类:其他好文   时间:2014-05-20 16:17:17    阅读次数:383
Leetcode | Combination Sum I && II
Combination Sum IGiven a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T...
分类:其他好文   时间:2014-05-19 16:41:14    阅读次数:269
LeetCode 016 3Sum Closest
【题目】 Given an array S of n integers, find three integers in S such 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 one solution. For example, given array S = {...
分类:其他好文   时间:2014-05-18 10:37:57    阅读次数:269
IOS 中NSTimer使用注意事项
1、初始化 + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)yesOrNo; + (NSTimer *)scheduledTimerWithTimeInterval:(NSTim...
分类:移动开发   时间:2014-05-18 08:52:17    阅读次数:327
[leetcode]:Two Sum
题目:给定一个数组,以及一个 target 值,target 表示目标和,要求在数组中找到两个数,xi,xj,使得 xi + xj = target。返回值是找到的两个数的下标索引,升序排序。假定至少存在一对解。 分析:对于要处理数组的问题,我们的理想状态都是给定的数组是有序的就好了,在有序后,我们就可以首位各放一个标记。类似于二分查找。 vector twoSum(vector &n...
分类:其他好文   时间:2014-05-18 08:04:03    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!