码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
C字符串题目
#include<stdlib.h>#include<stdio.h>char* string_in(char *s1,char *s2){ char *temp1=s1;char *temp2=s2;char *temp=s1;int inword; while(*s2!='\0'&&*s1!=' ...
分类:其他好文   时间:2016-04-01 22:01:58    阅读次数:183
归并排序的使用
不多说 先上模板 #include<stdio.h>void carry(int a[],int first,int mid,int last,int temp[])//将两个有序的数组合并{ int i=first,j=mid,m=mid+1,n=last,k=0; while(i<=j&&m<= ...
分类:编程语言   时间:2016-03-31 16:37:59    阅读次数:204
oracle创建用户、授予权限及删除用户
创建用户 oracle对表空间 USERS 无权限 alter user 用户名 quota unlimited on users; //创建临时表空间 create temporary tablespace test_temp tempfile 'E:/oracle/product/10.2.0/ ...
分类:数据库   时间:2016-03-30 12:56:48    阅读次数:197
求a+aa+aaa+aaaa+aaaaa,a是一个数
求a+aa+aaa+aaaa+aaaaa,a是一个数。 #include<stdio.h> intmain() { inti,a,sum=0,temp; printf("请输入一个数:"); scanf("%d",&a); temp=a; for(i=0;i<5;i++) { sum+=temp; temp=temp*10+a; } printf("%d",sum); return0; }
分类:其他好文   时间:2016-03-29 22:26:56    阅读次数:169
删除数组中某元素,返回含有剩余元素的数组
arr为删除前的数组,key为要删除的元素对象。//删除数组中某元素,返回含有剩余元素的数组 function arrMove(arr, key){ var temp = []; for (var i=0; i<arr.length; i++) { if (arr[i] != key) { temp ...
分类:编程语言   时间:2016-03-29 14:35:45    阅读次数:251
// 选择排序 *源代码
// 选择排序 源代码 void ChooseSort(int *a,int n){ int i=-1,j,temp; for(;++i<n-1;){ temp=i; for(j=i;++j<n;){ if(a[temp]>a[j]){ temp=j; } } if(i!=temp){ swap(& ...
分类:编程语言   时间:2016-03-28 13:30:55    阅读次数:139
基础排序算法
七个基础排序算法(均为内部排序): 直接插入排序 希尔排序 冒泡排序 简单选择排序 快速排序 堆排序 二路归并排序排序算法稳定性:经过排序后,具有相同关键码的元素之间的相对次序保持不变,则称该排序方法是稳定的;否则不稳定。直接插入排序:void InsertSort(int a[],int n){ // index start at 1, a[0] is temp one i...
分类:编程语言   时间:2016-03-28 00:15:58    阅读次数:189
C#中,使用正式表达式匹配获取所需数据
.NET中,使用正式表达式匹配获取所需数据 需求:获取一串字符串中,正则匹配出需要的数据。 例如以下字符串: string temp ="ErrorCode:-1,Message:{"UserId" : "1000","userName" : "ZhangSan"}"; 我需要获得“-1”和“{"U ...
分类:Windows程序   时间:2016-03-24 18:22:54    阅读次数:298
写一个备份文件的python脚本
写一个备份文件的python脚本#!/usr/bin/envpython #-*-coding:utf-8-*- importos importzipfile importtime start_Dir=‘/home/dragon/python/‘#需要压缩的文件或目录路径 List_1=[‘.git‘,‘.svn‘,‘temp‘]#不需要备份的目录 target_zip=‘/home/dragon/‘#压缩文件存放位置 Times=t..
分类:编程语言   时间:2016-03-24 16:40:03    阅读次数:298
写一个备份文件的python脚本
写一个备份文件的python脚本#!/usr/bin/envpython #-*-coding:utf-8-*- importos importzipfile importtime start_Dir=‘/home/dragon/python/‘#需要压缩的文件或目录路径 List_1=[‘.git‘,‘.svn‘,‘temp‘]#不需要备份的目录 target_zip=‘/home/dragon/‘#压缩文件存放位置 Times=t..
分类:编程语言   时间:2016-03-24 16:34:33    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!