public ActionResult Index(int? pageIndex) { List
data = new List(); for (int i = 0; i pagedList = new PagedList(data.As...
分类:
Web程序 时间:
2014-05-26 19:52:39
阅读次数:
279
Entity Framework
无法直接使用泛型,但是我们可以通过使用继承的办法来间接使用泛型。Imports System.Data.EntityImports
System.ComponentModel.DataAnnotationsModule Module1 Sub Main() Data...
分类:
其他好文 时间:
2014-05-26 16:38:59
阅读次数:
237
题目如下:
Tree Summing
Background
LISP was one of the earliest high-level programming languages and, withFORTRAN, is one of the oldest languages currently being used. Lists,wh...
分类:
其他好文 时间:
2014-05-25 21:39:51
阅读次数:
276
/*自我修改* Note: 堆排序(Heap Sort)*/#include using
namespace std;// 输出当前堆的排序状况void PrintArray(int data[], int size){ for (int i=1;
i a[i]) // 符号修改后形成...
分类:
其他好文 时间:
2014-05-25 19:07:25
阅读次数:
227
??
// //广度优先遍历二叉树
// //从一个顶点开始,识别所有可到达顶点
// //的方法叫作广(宽)度优先搜索,这种
// //搜索可使用队列来实现
typedef struct binarytree
{
EleType data;
struct binarytree *LeftChild;
struct binarytree *RightChild...
分类:
其他好文 时间:
2014-05-25 18:25:35
阅读次数:
316
文件上传:这里用得时表单上传的方式,表单上传到的时候
method一定指定为POST,enctype="multipart/form-data".第一种方式,直接上传、读取、显示内容,并没有存储到服务器端。 1 2
6 7 8 9 10 ">11 12 My J...
分类:
Web程序 时间:
2014-05-25 15:12:42
阅读次数:
363
在Vista系统之后,微软为窗体程序提供了Aero磨砂的效果,如下图。那么用C#如何来实现这种磨砂效果呢?代码:using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;us...
昨天同事在做主从时,从库报如下错误:Got fatal error 1236 from master when reading data from binary log: 'Misconfigured master - server id was not set'粗粗看好像是master的server-id没有设置,但同事做如下查询:备库采集:
root@localhost Fri May 23 ...
分类:
数据库 时间:
2014-05-25 09:57:24
阅读次数:
330
gunzip -r hongchangfirst/data
如何递归删除那些剩余的非log结尾的文件?
先列出确认一下:
find hongchangfirst/data -type f ! -name "*.log"
然后真正的删除:
find hongchangfirst/data -type f ! -name "*.log" -exec rm -f {} \;...
分类:
系统相关 时间:
2014-05-25 09:41:05
阅读次数:
694
1. 循环队列的顺序存储结构
typedef struct
{
QElemType data[MAXSIZE];
int front; /* 头指针 */
int rear; /* 尾指针,若队列不空,指向队列尾元素的下一个位置 */
}SqQueue;
2. 初始化一个空队列Q
Status InitQueue(SqQueue *Q)
{
Q->fr...
分类:
编程语言 时间:
2014-05-25 04:43:05
阅读次数:
407