码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
折半插入排序
var arr = [38,49,65,97,76,13,27,49];var BIN_INSERTSORT = function(arr){ var i, j,temp,low,mid,high; var n = arr.length; for( i = 1;i=low;j--){ ...
分类:编程语言   时间:2014-12-23 13:44:16    阅读次数:185
默认字典
>>> import collections>>> d=collections.defaultdict(int)>>> d['temp']0>>> ddefaultdict(, {'temp': 0})>>> d=collections.defaultdict(lambda :1)>>> d['te...
分类:其他好文   时间:2014-12-23 11:49:09    阅读次数:157
sql异常
表结构Id int UncheckedTitle nvarchar(50) CheckedValue nvarchar(1000) CheckedRemark nvarchar(1000) Checked查询DECLARE @temp TABLE ( Id INT, Tit...
分类:数据库   时间:2014-12-23 10:24:47    阅读次数:178
批处理命令篇--配置免安装mysql 5.6.22
原文:批处理命令篇--配置免安装mysql免安装版的mysql是进行软件绿色发布的绝佳助手,本文介绍一种使用批处理命令自动配置mysql的方法。(1)建立三个文件,分别是:service install.bat,temp.txt,update.sql。(2)在temp.txt文件中写入如下内容:se...
分类:数据库   时间:2014-12-22 19:30:08    阅读次数:343
即将完成的代码
#include#include#include#includeusing namespace::std;typedef struct {double xx,yy,zz;}poi;void swap(int *x, int *y){ int temp; temp=*x; *x=*y; *y=tem....
分类:其他好文   时间:2014-12-22 19:13:57    阅读次数:141
12-21java面向对象之异常
1.异常 异常是导致程序中断执行的一种指令流。public class TestException1 { public static void main(String[] args) { int i = 10; //定义整型变量 int j =0 ; //定义整型变量 int temp = i/j ; System.out.println("两个数字相除的结果:"...
分类:编程语言   时间:2014-12-22 09:34:10    阅读次数:181
随机取出若干个文件脚本
#!/bin/bash #随机取出res目录下20个大于50K的图片并输出其名称 res=(`findres/-name"*.png"-size+50k-o-name"*.jpg"-size+50k`) tmp_file="/tmp/temp_res.txt" touch$tmp_file >$tmp_file while[[`uniq$tmp_file|wc-l`!=20]] do echo`expr$RANDOM%${#res[@]}`>>$t..
分类:其他好文   时间:2014-12-22 02:07:10    阅读次数:205
【c语言】利用指针进行两个数的交换。
#includevoid swap(int *a,int *b){ int temp; temp=*a; *a=*b; *b=temp;}void main(){ int a,b,*m,*n; a=4; b=5; m=&a; n=&b; printf("a=%d,b=%d\n",a,b); swap...
分类:编程语言   时间:2014-12-21 23:23:28    阅读次数:361
Add Binary
该题答案如下:class Solution {public: string addBinary(string a, string b) { string::reverse_iterator itea,iteb; string result; char temp; ...
分类:其他好文   时间:2014-12-21 11:30:10    阅读次数:254
【c语言】利用指针求三个数的最大数和最小数
比较费空间的笨方法:#includevoid main(){ int i,j,k,*m,*n,*q,temp; printf("请输入三个数:"); scanf("%d,%d,%d",&i,&j,&k); printf("三个数是:%d,%d,%d\n",i,j,k); m=&i,n=&j,q=&k...
分类:编程语言   时间:2014-12-20 23:17:52    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!