码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
经典排序——插入排序
插入排序:是利用第1次排序到第p次排序,位置0到p-1上的位置都是排序好的。 这样只要比较一下[i-1]和[i]就知道还要不要进入第2个循环。 如果[i-1]>[i]那么就要继续进入第二个循环。 将这个位置的[i]存起来temp;在令j=i;开始循环交换位置,temp[j]=temp[j-1] 这个 ...
分类:编程语言   时间:2016-10-19 02:19:41    阅读次数:133
ansible控制windows安装及运行error与解决方法
Q1:安装kerberos报错$sudopipinstallkerberos runningbuild_ext building‘kerberos‘extension creatingbuild creatingbuild/temp.linux-x86_64-2.7 creatingbuild/temp.linux-x86_64-2.7/src gcc-pthread-fno-strict-aliasing-DNDEBUG-g-fwrapv-O2-Wall-Wstrict-prototypes-fP..
分类:Windows程序   时间:2016-10-18 23:44:40    阅读次数:5215
Oracle 创建表空间
/*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace user_temp tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf' size 50m autoextend on next 50m max ...
分类:数据库   时间:2016-10-17 11:16:38    阅读次数:248
RTKLIB改-set_index-增加北斗的
if (sys == SYS_CMP) { unsigned char temp[64]; for (int x = 0; x < 64; x++) { temp[x] = ind->code[x]; } qsort(&temp, n, sizeof(ind->code[0]), comp); fo ...
分类:其他好文   时间:2016-10-16 09:43:39    阅读次数:201
翻转句子
// 如何翻转单词 void reverse_str(char *pBegin, char *pEnd){ if(pBegin == NULL || pEnd == NULL) return; while(pBegin < pEnd){ char temp = *pBegin; *pBegin = ...
分类:其他好文   时间:2016-10-15 16:28:38    阅读次数:152
oracle的表如何跨表空间存储
oracle的一个表所在表空间,空间已经占满,其他表空间有剩余空间.实现表存在另外的表空间.方案一:利用原表重建分区表1:原表temp,存在字段id,time;2:temp存在纪录;3:根据原表temp创建新的分区表temp_newCREATETABLEtemp_new(ID,TIME)PARTITIONBYRANGE(TIME)(PARTITIONP1VALUESLES..
分类:数据库   时间:2016-10-15 00:03:16    阅读次数:326
String的indexof的使用
public class Test8 { public static int getNum() { int num = 555667; boolean b = true; int temp = 1; int he = 0; while(b){ temp++; he = num*temp; Strin ...
分类:其他好文   时间:2016-10-14 20:12:10    阅读次数:144
四则运算
public class lianxi { String f() { int i=(int)(Math.random()*10); int j=(int)(Math.random()*10); if(i>=j) { int temp=i; i=j; j=temp; } return("("+i+"/ ...
分类:其他好文   时间:2016-10-13 01:59:52    阅读次数:133
经典汉诺塔递归实现
/* *为了将num个盘子从char移动到to,需要先将第num个盘子上面的num-1个盘子移动到temp上, *然后将第num个盘子移动到to上,最后将第N-1个盘子从temp移动到to上。这样通过递归 *就可以实现汉诺塔问题的求解。 */ publicstaticvoidHanuoTower(intnum,charfrom,chartemp,charto){..
分类:其他好文   时间:2016-10-11 00:12:41    阅读次数:203
VC常用数据类型使用转换
我们先定义一些常见类型变量借以说明 [cpp] view plain copy int i = 100; long l = 2001; float f=300.2; double d=12345.119; char username[]="赵三"; char temp[200]; char *buf ...
分类:其他好文   时间:2016-10-10 01:10:22    阅读次数:263
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!