1.插入排序void InsertSort(int *a,int n){ int i,j; int temp; for (i=1;i=0 && tempa[j+1]) swap(a[j],a[j+1]); } }}void Bubb...
分类:
编程语言 时间:
2014-11-23 10:27:47
阅读次数:
249
。#include #include #include #include using namespace std;int main(){ int T,temp,ans,n; cin>>T; while(T--) { cin>>n; temp=n; ...
分类:
其他好文 时间:
2014-11-23 00:31:28
阅读次数:
164
#includeusing namespace std;int main(int count,char *[]){ int a[10]={9,8,7,6,5,4,3,2,1,0}; int temp=0; int n=10; for(int i=0;ia[j+1]) ...
分类:
编程语言 时间:
2014-11-22 12:02:28
阅读次数:
200
function x = fxsteep(f,e,a,b)x1 = a;x2 = b;Q = fxhesson(f,x1,x2);x0 = [x1,x2]';temp = [x0];fx1 = diff(f,'x1');fx2 = diff(f,'x2');g = [fx1,fx2]';g1 = s...
分类:
其他好文 时间:
2014-11-21 23:05:43
阅读次数:
851
js方法如下:function addDate(ymd,day){ var temp = new Date(ymd); temp = temp.valueOf(); temp = temp + day * 24 * 60 * 60 * 1000; temp = new Date(temp); ret...
分类:
其他好文 时间:
2014-11-21 18:34:47
阅读次数:
173
第21章 非变易算法 Non-modifying sequence operations 21.0 advance, distance 为了了解模板,先了解一下这两个迭代器操作函数 21.1 逐个容器元素for_each for_each Apply function to range (temp....
分类:
编程语言 时间:
2014-11-21 17:55:14
阅读次数:
168
int main(){ freopen("in1.txt","r",stdin); freopen("out.txt","w",stdout); int i=0,j=0; int temp=0, a[200],b[200],f[400]; char s[200]; scanf("%s",s)...
分类:
其他好文 时间:
2014-11-21 15:44:17
阅读次数:
277
本人使用oracle时间不多,但是在项目中积累了一些经验教训,记录于此,以方便自己和他人解决类似的问题。 1.temp space超出限制的问题 问题场景:
在复杂的ETL query中,有时候一张fact表逻辑复杂,来自多张表的join,我习惯写成CTE的方式, 但CTE是放在内存中的,所以比较快...
分类:
数据库 时间:
2014-11-21 08:02:52
阅读次数:
268
1.封装节点的JavaBeanpublic class City { private String name; private String temp; private String pm25; public String getName() { return ...
分类:
移动开发 时间:
2014-11-21 01:19:23
阅读次数:
320
swap(int *p1,int *p2){ int temp; temp=*p1; *p1=*p2; *p2=temp;}main(){ int a,b; int *pointer_1,*pointer_2; scanf("%d%d",&a,&b); ...
分类:
其他好文 时间:
2014-11-20 18:25:29
阅读次数:
134