class TableInfo where T : new() { public
TableInfo() { Type type = typeof(T); TableAttribute tableattr = ty...
分类:
其他好文 时间:
2014-05-19 09:29:01
阅读次数:
210
1. 加载 BMP[cpp] view
plaincopyprint?CStatic*pWnd=(CStatic*)GetDlgItem(IDC_PIC);//得到PictureControl句柄
pWnd->ModifyStyle(0,SS_BITMAP);//修改它的属性为位图 pWnd->Se...
分类:
其他好文 时间:
2014-05-19 09:27:13
阅读次数:
355
Given a linked list, remove the nth node from
the end of list and return its head.For example,Given linked list:
1->2->3->4->5, and n = 2.After removi...
分类:
其他好文 时间:
2014-05-19 09:16:49
阅读次数:
247
主要内容: 堆、最大堆、最小堆的基本概念 堆的操作:调整、创建、排序 采用堆实现优先级队列
基本概念 堆(heap)亦被称为:优先队列(priority queue) 逻辑定义:
n个元素序列{k1,k2...ki...kn},当且仅当满足下列关系时称之为堆: (ki = k2i,ki >= k2i...
分类:
其他好文 时间:
2014-05-19 08:45:41
阅读次数:
264
Mac系统打开命令行终端的方法: 应用程序 --> 实用工具 -->
终端Mac系统终端查看操作系统版本号的方法:输入:#more
/System/Library/CoreServices/SystemVersion.plist.plist ProductBuildVersion ...
分类:
其他好文 时间:
2014-05-19 08:44:27
阅读次数:
254
给定n
k以及n个人已参加的比赛数,让你判断最少还能参加k次比赛的队伍数,每对3人,每个人最多参加5次比赛#include using namespace
std;int main(){ int n,k, cnt = 0; cin >> n >> k; for(int i = 0 ...
分类:
其他好文 时间:
2014-05-19 08:40:56
阅读次数:
239
u 常用的API创建Cookie对象Cookie(String name, String value)
->以指定数据创建Cookie对象设置Cookie对象void setMaxAge(int expiry)
->设置Cookie的最大有效时间void setPath(String uri) .....
分类:
其他好文 时间:
2014-05-19 08:34:51
阅读次数:
253
【as+bt=1是ab两数互质的充要条件】 充分性,ab+bt=1 =>
(a,b)=1: 因为as+bt=1,设c=(a,b),则c整除a和b,所以c整除as+bt,即c整除1,所以c=1,即a和b互质 必要性,(a,b)=1
=> ab+bt=1: 考虑非空集合A={as+bt│s,t为...
分类:
其他好文 时间:
2014-05-19 08:30:12
阅读次数:
567
http://developer.android.com/sdk/installing/installing-adt.html Download the ADT
Plugin Start Eclipse, then select Help > Install New Software. Click ...
分类:
系统相关 时间:
2014-05-19 07:58:09
阅读次数:
343
void quickSort(int *a1 , int *a2){ int i=0 ,
j=a2-a1-1; if (i>=j) return; swap(a1[0] , a1[rand()%j+1]); while( ia1[0])
--j; if(i<j)...
分类:
其他好文 时间:
2014-05-19 07:43:47
阅读次数:
213