jdbc.properties#hibernate settings hibernate.show_sql=truehibernate.format_sql=truehibernate.cache.use_query_cache=truehibernate.cache.provider_class=...
分类:
编程语言 时间:
2014-07-07 12:43:02
阅读次数:
184
1 public static final FastDateFormat ISO_DATE_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd"); 上面的final 字段代表一个不可变的FastDateFormat,然而要让FastDateFormat....
分类:
其他好文 时间:
2014-07-07 12:23:31
阅读次数:
274
// By using the ColorTranslator you can easily convert color values// definied in the hexadecimal format (like it is used in HTML)Color Color1 = Syste...
分类:
Web程序 时间:
2014-07-07 09:03:31
阅读次数:
217
一、什么是可变参数
我们在C语言编程中有时会遇到一些参数个数可变的函数,例如printf()函数,其函数原型为:
int printf( const char* format, ...);
它除了有一个参数format固定以外,后面跟的参数的个数和类型是可变的(用三个点“…”做参数占位符),实际调用时可以有以下的形式:
printf("%d",i);
printf("%s",s...
分类:
其他好文 时间:
2014-07-05 10:38:06
阅读次数:
199
步骤/方法
分三个步骤
在头文件中声明函数例如
afx_msg void onNum(UINT uID)
在.cpp文件中添加函数体
void CCalculatorDlg::OnNum(UINT uID)
{
UINT index=uID-IDC_NUM_0;
CString num;
num.Format(_T("%d"),index);
A...
分类:
其他好文 时间:
2014-07-04 00:38:58
阅读次数:
307
谷歌发布了安卓L的源代码,据说是Google历史上最深入的版本更新。虽然咱不搞安卓但是看看源代码还是蛮有意思的。于是就想把源代码下载下来,项目开源的主页https://android.googlesource.com/?format=HTML有一个下载说明,但是后面有个name是下面对应的每个文件夹...
分类:
移动开发 时间:
2014-07-03 23:37:21
阅读次数:
370
Substrings
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You are given a string S which cons...
分类:
其他好文 时间:
2014-07-03 16:52:59
阅读次数:
166
一、构造方法ControlChart1、前台页面控件赋值//时间下拉框赋值,下拉框赋选定值 for (int ii = DateTime.Today.Year; ii >= 1980; ii--) { string item = string.Format("{0}年", ii.ToString()...
分类:
Web程序 时间:
2014-07-02 19:21:55
阅读次数:
180
#!/usr/bin/env python#coding=utf-8import traceback try: 1/0except Exception, e: print e print traceback.format_exc()
分类:
编程语言 时间:
2014-07-02 17:34:59
阅读次数:
266
#pragma mark 加载xml
- (void)loadXML
{
//获取网络数据。
NSLog(@"load xml");
//从web服务器加载数据
NSString *str = @"http://www.baidu.com?format=xml"; //这里是乱写的
//1简历NSURL
NSURL *url = [NSURL UR...
分类:
移动开发 时间:
2014-07-02 16:41:26
阅读次数:
361