Hibernate主键生成策略:http://www.cnblogs.com/flyoung2008/articles/2165759.html一般自增主键(Integer)映射方式: String(字符串)为主键的映射方式:
分类:
Web程序 时间:
2015-06-18 00:45:02
阅读次数:
134
1 /************************************************************************* 2 > File Name: mystring.h 3 > Author: lukey 4 > Mail: lukey123@fox...
分类:
编程语言 时间:
2015-06-18 00:41:19
阅读次数:
201
uses ActiveX, ComObj, MSHTML; 根据连接文字点击连接- 一般情况下的连接 Procedure HTMLClinkByText(text:string;Wbr:TWebBrowser);var doc:IHTMLDocument2; len,I:inte...
分类:
Web程序 时间:
2015-06-18 00:33:39
阅读次数:
175
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 3;//
int m = 3;//这个是个数
int result = a;
int sum = a;
for (int i = 1; i
sum = 10 * sum + a;
result += sum...
分类:
其他好文 时间:
2015-06-17 23:27:39
阅读次数:
264
在Model使用的时候很多人回向以前写三层架构一样使用它,将Model作为数据的传递者。比如常见的写法 public int Id { get; set; } public int RoleId { get; set; } public string Nam...
分类:
Web程序 时间:
2015-06-17 23:17:55
阅读次数:
208
Basic Calculator问题:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses)...
分类:
其他好文 时间:
2015-06-17 23:06:49
阅读次数:
192
题目意思:罗马数字转int思路:字符串从最后一位开始读,IV:+5-1 1 class Solution { 2 public: 3 int romanToInt(string s) { 4 map mymap; 5 mymap['I']=1; 6 ...
分类:
其他好文 时间:
2015-06-17 23:00:27
阅读次数:
134
首先来看一道题:下面代码的输出结果是什么?
import java.util.HashMap;
import java.util.Map;
public class HashMapTest {
public static void main(String[] args) {
Map map=new HashMap();
map.put(String.valueOf(System.cu...
分类:
编程语言 时间:
2015-06-17 21:46:48
阅读次数:
137
头文件: #include
第一名
char* strstr(char* dest, char* need);
从dest字符串中找出need字符串出现的位置,不比较结束符,找不到返回NULL,找到了返回need出现的位置
第二名
char* strcat(char* dest, char* src);
char*
strncat(char* de...
分类:
其他好文 时间:
2015-06-17 21:45:06
阅读次数:
157
string类的查找函数: int find(char c, int pos = 0) const;//从pos开始查找字符c在当前字符串的位置int find(const char *s, int pos = 0) const;//从pos开始查找字符串s在当前串中的位置int find(const char *s, int pos, int n) const;//从pos开始查找字符串s中前n个...
分类:
编程语言 时间:
2015-06-17 21:44:40
阅读次数:
163