c/c++ 头文件引用问题include 引用编译器的类库路径下的头文件include “” 引用工程目录的相对路径的头文件include 是编译指令,在编译时,编译器会将相对路径替换成绝对路径,因此,头文件绝对路径=搜索路径+相对路径。Xcode Build Settings 下 Search ....
分类:
其他好文 时间:
2014-07-08 22:57:44
阅读次数:
344
GUID概念
GUID: 即Globally Unique Identifier(全球唯一标识符) 也称作 UUID(Universally Unique IDentifier) 。 GUID是一个通过特定算法产生的二进制长度为128位的数字标识符,用于指示产品的唯一性。GUID 主要用于在拥有多个节点、多台计算机的网络或系统中,分配必须具有唯一性的标识符。
在 Windows...
分类:
其他好文 时间:
2014-07-08 20:13:04
阅读次数:
165
Problem Description:
Given an array S of n integers, are there elements a, b, c in S such that a + b + c =
0? Find all unique triplets in the array which gives the sum of zero.
Note:
El...
分类:
其他好文 时间:
2014-07-08 18:31:01
阅读次数:
159
Hibernate One-to-One Mappings 一对一关系映射
关键:一对一关系映射和多对一关系映射很像,只是 column 属性值为 unique
例子:一个员工只能有一个地址。
Hibernate框架的使用步骤:
1、创建Hibernate的配置文件(hibernate.cfg.xml)
2、创建持久化类,即其实例需要保存到数据库中的类...
分类:
移动开发 时间:
2014-07-08 15:46:47
阅读次数:
285
Unique Binary Search Trees
My Submissions
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 uniqu...
分类:
其他好文 时间:
2014-07-08 14:18:39
阅读次数:
159
@Column(name = 可选,列名(默认值为属性名)。unique = 可选,是否在该列上设置唯一约束(默认false)。nullable = 可选,是否设置该列的值可以为空(默认true)。insertable = 可选,该列是否作为生成的insert语句中的一列(默认true)。updat...
分类:
其他好文 时间:
2014-07-06 22:52:07
阅读次数:
261
解决办法:在weblogic 配置 【paths】项中 添加antlr-2.7.7.jar,该jar包应该位于引用weblogic.jar之前,使启动时不再加载weblogic中的低版本的antlr 此外:直接在weblogic部署发布时 1、将antlr-2.7.6.jar复制到weblogic目...
分类:
Web程序 时间:
2014-07-06 21:28:36
阅读次数:
296
判断最小生成树是否唯一。
先扫一遍边,找出相等的边并标记 vis;
然后生成最小生成树,总权值为 ans,并记录下哪些边在第一次生成中使用了。use;
最后扫描所有边,有相等的,并且使用的边。把它标记为删除 del;然后生成最小生成树。
如果跟第一颗树权值一样,表明生成树不是唯一的。
#include
#include
#include
#includ...
分类:
其他好文 时间:
2014-07-06 10:28:48
阅读次数:
135
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
给定一个字符串S,找出其中的最长回文...
分类:
其他好文 时间:
2014-07-06 00:15:15
阅读次数:
240
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define eps 1e-6
#define ll __int64
using namespace std;
#define N 1010
#define M 20010...
分类:
其他好文 时间:
2014-07-03 16:59:36
阅读次数:
226