VS2010中如何添加“依赖","库目录","包含目录"1. 添加编译所需要(依赖)的 lib 文件[解决方案资源管理器]“项目->属性->配置属性->连接器->输入->附加依赖项”里填写“winsock.lib”,多个 lib 以空格隔开。(等同于“#pragma comment(lib, "wi...
分类:
其他好文 时间:
2014-09-22 12:34:02
阅读次数:
197
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()", which ...
分类:
其他好文 时间:
2014-09-22 03:21:11
阅读次数:
264
题记:这道题不难但是很有意思,有两种解题思路,可以说一种是横向扫描,一种是纵向扫描。横向扫描:遍历所有字符串,每次跟当前得出的最长公共前缀串进行对比,不断修正,最后得出最长公共前缀串。纵向扫描:对所有串,从字符串第0位开始比较,全部相等则继续比较第1,2...n位,直到发生不全部相等的情况,则得出最...
分类:
其他好文 时间:
2014-09-22 00:12:11
阅读次数:
267
在项目属性的“预处理器定义”中添加:
??
_USING_V110_SDK71_
注意无论使用vs2012还是2013,选择哪个平台工具集都是定义V110,这个不需要修改。
如果有用预编译头的话,也可以在预编译头中添加这个定义。
引申,为什么会出现这个错误?
cocos2d-x默认使用的平台工具集是v120_xp,这个是是兼容wi...
分类:
其他好文 时间:
2014-09-21 21:49:01
阅读次数:
234
package 字符串2;public class TestString {public static void main(String[] args) { String str = "Returns a new character sequence that is a subsequence of...
分类:
其他好文 时间:
2014-09-20 17:35:59
阅读次数:
182
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=2795摘要:有一块尺寸为h*w的矩形长板,要在上面贴1*wi的海报n张,选择贴海报的位置是:尽量高,同一高度,选择尽量靠左的地方。要求输出每张海报的高度位置。直接用线段树来做就可以了,用线段树维护 区间剩余...
分类:
其他好文 时间:
2014-09-19 23:53:26
阅读次数:
185
Palindrome Partitioning IIGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a p...
分类:
其他好文 时间:
2014-09-19 22:21:56
阅读次数:
261
WiFi简介Wi-Fi可分为五代:第一代802.11,1997年制定,只运行于2.4GHz,最快2Mbit/s第二代802.11b,只运行于2.4GHz,最快11Mbit/s,正逐渐淘汰第三代802.11g/a,分别运行于2.4GHz和5GHz,最快54Mbit/s第四代802.11n,可运行于2.4GHz或5GHz,20和40MHz带宽下最快72和150Mbit/s第..
分类:
移动开发 时间:
2014-09-19 12:15:56
阅读次数:
197
[leetcode]Given an unsorted array of integers, find the length of the longest consecutive elements sequence....
分类:
其他好文 时间:
2014-09-19 12:09:45
阅读次数:
167
1.在windows下建立文件夹f:\linux,共享给win下用户username,该用户密码为passwd。该windows系统在局域网中IP为192.168.18.2032.在centos6.5的命令行(root权限)运行mount //192.168.18.203/linux /mnt/wi...