1 #include 2 #include 3 using namespace std; 4 5
#define N 4 6 7 void fullarrange(char num[], int len, int index) { 8 if(index ==
len) { 9 ...
分类:
其他好文 时间:
2014-06-20 08:51:28
阅读次数:
293
#include#include#define MAX_VERTEX_NUM 20 typedef
struct ArcBox{ int tailvex,headvex;//该弧的头和尾定点的位置 struct ArcBox
*hlink,*tlink;//分别为弧头和弧尾相同的弧的链域 int *...
分类:
其他好文 时间:
2014-06-12 00:13:49
阅读次数:
243
Sub 月汇总() Dim MyPath, MyName, AWbNameDim Wb As
Workbook, WbN As StringDim G As LongDim num As Long Application.ScreenUpdating =
FalseMyPath = ActiveW....
分类:
其他好文 时间:
2014-06-11 21:56:24
阅读次数:
398
#include#include#define MAX_VERTEX_NUM 10typedef
char VertexType;typedef struct ArcNode//边 { int adjvex; struct ArcNode *nextarc;
in...
分类:
其他好文 时间:
2014-06-11 09:03:34
阅读次数:
277
function factorial(num){ if(num<=1){ return 1;
}else{ return num * arguments.callee(num-1); //指向一个正在执行函数的指针,可以实现对函数的递归...
分类:
Web程序 时间:
2014-06-11 08:56:56
阅读次数:
244
a1,a2,a3,a4,a5,a6...an
对ai求出a1到ai的lis,ai+1到an的lds
取所有ai对应的lis+lds最大值
输出n-lis-lds
#include
#include
#include
#include
#include
#include
using namespace std;
int n;
double num[1111];
double up...
分类:
其他好文 时间:
2014-06-09 23:29:00
阅读次数:
249
返回查询影响的记录数
$res = $this->db->get_where('wx_life',array('id'=>$id));
$num = $res->num_rows();...
分类:
数据库 时间:
2014-06-09 23:10:50
阅读次数:
259
题目描述:从上往下打印出二叉树的每个节点,同层节点从左至右打印。输入:输入可能包含多个测试样例,输入以EOF结束。对于每个测试案例,输入的第一行一个整数n(1arr[j].num;
} if(a->arr[j].lchild != 0){ Quene[end_q++] = ...
分类:
其他好文 时间:
2014-06-07 21:56:39
阅读次数:
225
update #temp
set #temp.Recycle=case when UnionA.num>0 then 1 else 0 end
from (select GradeID,sum(num)as num from AreaAllot
where CHARINDEX(@Area,AreaAllot.Area)=1 and LEN(@Area)=LEN(Area)-2
...
分类:
数据库 时间:
2014-06-07 12:57:44
阅读次数:
304
python实现的链表,包括插入、查找、删除操作
#!/usr/bin/python
class linknode():
def __init__(self,k,n=None):
self.key=k;
self.next=n;
def createlist(): #创建链表
n=raw_input("enter the num of nodes");
n=int(...
分类:
编程语言 时间:
2014-06-07 12:23:46
阅读次数:
204