在比较openSession和getCurrentSession这两个方法之前,我们先认识一下这两个方法。在进行配置信息管理时,我们一般进行一下简单步骤:1
Configuration cfg = new Configuration(); // 获得配置信息对象2 SessionFacto...
分类:
其他好文 时间:
2014-05-14 04:14:10
阅读次数:
247
You are given annxn2D matrix representing an
image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this
in-place?思路:先将矩阵转置,然后将第一列与最后...
分类:
其他好文 时间:
2014-05-14 03:09:35
阅读次数:
225
在.NET中调用存储过程
今天试了一下用存储过程取得数据。归纳方法如下:
1.用SqlCommand和DataSet:
SqlConnection conn=new SqlConnection("server=(local);uid=;password=;database=");
SqlCommand cmd=new SqlCommand("StoreProcedure",connn)...
分类:
Web程序 时间:
2014-05-14 00:20:26
阅读次数:
428
1. 下面的代码运行后,将输出什么结果? String s1 = new String("Test"); String s2 = new String("Test"); if (s1==s2)
System.out.println("Same"); if (s1.equals(s2))
System.out.println("Equals");
A. Same...
分类:
编程语言 时间:
2014-05-13 07:42:26
阅读次数:
306
显示7种Dialog下面是图,然后一次对应的代码实现
实现代码
new AlertDialog.Builder(AlertDialogSamples.this)
.setIcon(R.drawable.alert_dialog_icon)
.setTitle(R.string.alert_dialog_two_button...
分类:
移动开发 时间:
2014-05-13 05:47:34
阅读次数:
446
来源:孙鑫老师c++教程第7集在创建非模态对话框时void
CMyboleView::OnDialog(){// TODO: Add your command handler code here方法一TestDlg
*ptdlg=new TestDlg(this);ptdlg->Create(IDD...
分类:
其他好文 时间:
2014-05-12 21:15:11
阅读次数:
309
数组是存储在一个连续的内存块中的元素,数组中的每个元素必须是相同的数据类型,并且通过索引进行区分,数组中的第一个元素的索引为0。1)数据的声明。数
据类型[]数组变量名,或数据类型 数组变量名[]。如int [] sums;或int sums[]。创建数组语法,数组变量=new 数据类型[数组长度]...
分类:
其他好文 时间:
2014-05-12 20:29:18
阅读次数:
369
玩魔兽和LOL时注意到即时游戏窗口最小化,鼠标仍限制在窗口内,这具体是怎么实现的呢?Msdn上有个例子Confining a Cursor:RECT
rcClip; // new area for ClipCursorRECT rcOldClip; // previ...
分类:
其他好文 时间:
2014-05-12 20:25:11
阅读次数:
431
C#修改文件或文件夹的权限,为指定用户、用户组添加完全控制权限 //给Excel文件添加"Everyone,Users"用户组的完全控制权限
FileInfo fi = new FileInfo(excelPath);
System.Security.AccessControl.FileSecurity fileSecurity...
分类:
其他好文 时间:
2014-05-11 21:46:53
阅读次数:
377