码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
JDBC编程
JDBC是数据库连接纽带,统一数据库接口。JDBC编程步骤:1.Load the Driver v_b) then v_ret := v_a; else v_ret := v_b;end if; v_temp := v_temp +1;end;/impo...
分类:数据库   时间:2014-09-06 23:44:24    阅读次数:328
更相减损术求最大公约数-C
可参照辗转相除 1 #include 2 3 int main(void) 4 { 5 int x=260; 6 int y=104; 7 8 int temp; //临时变量 9 10 int index=0;11 while((x%2==0)&&(...
分类:其他好文   时间:2014-09-06 18:36:03    阅读次数:145
辗转相除法求最大公约数-C
1 #include 2 3 int main(void) 4 { 5 int x=252; 6 int y=105; 7 8 int temp; //临时保存变量 9 10 while(y!=0) //当y也就是余数为0的时候,x就是约数11 ...
分类:其他好文   时间:2014-09-06 18:30:53    阅读次数:200
01. 把存储过程结果集SELECT INTO到临时表
原文:01. 把存储过程结果集SELECT INTO到临时表在开发过程中,很多时候要把结果集存放到临时表中,常用的方法有两种。 一. SELECT INTO 1. 使用select into会自动生成临时表,不需要事先创建 select * into #temp from sysobjects se...
分类:其他好文   时间:2014-09-06 12:19:53    阅读次数:287
sg函数
两种方法: 1.dfs求法 int mex(int n) { if(sg[n]!=-1) return sg[n]; int temp; bool vis[N]; memset(vis,false,sizeof(vis)); for(int i=0;i=arr[i];i++) { temp=n-arr[i]; s...
分类:其他好文   时间:2014-09-05 22:29:22    阅读次数:208
[SegFault] 讨厌的段错误 how to debug "Segment Fault" on Linux
OverviewWe can get SegFault by several reasons:aligned access to unaligned memory(usally see in ARM NEON)cross-border accessint temp[2] = {0};temp[2] ...
分类:系统相关   时间:2014-09-05 17:57:01    阅读次数:296
乱序数组找出前面的都比他小后面的都比他大的数
1 int f(int*a,int*b,int n) 2 { 3 if(!a||!b||nmax) 8 { 9 temp[i]++;10 max=a[i];11 }12 int min=a[n-1];...
分类:其他好文   时间:2014-09-05 17:56:31    阅读次数:220
冒泡排序
//参数:数组和数组长度//注意:重复交换相邻的两个反序元素,0-i-1是已经排序的,每次排序将最小的元素冒泡到i//算法时间复杂度o(n的平方);空间复杂度:O(1)//适用情况:n较小时void Bubble_Sort(int A[],int n){ int i,j,temp; //每次...
分类:其他好文   时间:2014-09-05 16:06:51    阅读次数:181
软件预构的艺术源码编译
环境:windows7 + jdk8 + eclipse目录:源码 E:\Src\SamsCDRental-Prefactoring数据 E:\temp步骤:导入项目到eclipse中E:\Src\SamsCDRental-Prefactoring\SamsCDRental 包含.project文件...
分类:其他好文   时间:2014-09-05 02:08:50    阅读次数:168
数组全排列 knuth 分解质因数
templatevoid swap(T* a, T* b){ T temp = *a; *a = *b; *b = temp;}//数组的全排列void perm(int list[], int k, int m){ if (k==m) { copy(list,list+m...
分类:其他好文   时间:2014-09-04 20:44:00    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!