插入排序:逐个处理待排序的记录,每条记录与前面已排序的子列进行比较,将它插入到子序列的正确位置。 1 void InserionSort(int unsort[],const int count) 2 { 3 int i, j; 4 for (i = 1; i 0&&temp<uns...
分类:
编程语言 时间:
2015-03-11 21:32:13
阅读次数:
140
var newRow = ''+ ''+ ' '+ ''+ ''+temp[1]+''+ ''+temp...
分类:
其他好文 时间:
2015-03-11 12:31:50
阅读次数:
118
*.vm 后缀的文件,是velocity的文件。velocity是基于java的一种页面模板引擎,支持#if #else #foreach等写法的前台文件。$link.contextPath是该引擎支持的一种默认写法,可以取得应用程序执行根路径。Velocity是一个基于java的模板引擎(temp...
分类:
其他好文 时间:
2015-03-11 12:25:21
阅读次数:
118
Problem Description有n(nint main(){int n,m,i,j,temp,cnt;int str[101];while(scanf("%d%d",&n,&m)!=EOF){if(n==0 && m==0) return 0;else{for(i=0;i=m){cnt=i;...
分类:
其他好文 时间:
2015-03-11 10:31:23
阅读次数:
93
Problem Description输入n(nint main(){int n,i,temp,cnt,min;int str[100];while(scanf("%d",&n)!=EOF){if(n==0) return 0;else{for(i=1;i<=n;i++){scanf("%d",&s...
分类:
其他好文 时间:
2015-03-11 09:17:05
阅读次数:
186
#include
#include
/*
编写一个函数,传入a,b两个int类型的变量,返回两个值的最大公约数。
例如:输入传入(0 , 5)函数返回5,传入(10 , 9)函数返回1,传入(12 , 4)函数返回4
*/
//更相减损法
int fuc(int m,int n)
{
int i=0,temp,x;
while(m%2==0 && n%2==0) //判断m和n能被多...
分类:
编程语言 时间:
2015-03-10 23:11:40
阅读次数:
175
#include #include #include #include #include #include #include static DLGTEMPLATE input_temp = { WS_BORDER | WS_CAPTION, WS_EX_NONE, 0, 0, 640, 420, "...
分类:
其他好文 时间:
2015-03-10 18:42:34
阅读次数:
118
第一
第二
把字符串“第一”、“第二”分别按关键字we1、we2放进书包temp中,并把书包temp保存到会话中...
分类:
其他好文 时间:
2015-03-10 15:32:11
阅读次数:
112
C#转义字符c#里 @ 表示的是:1、在C#中,"c:\\temp"表示路径是c:\temp; 而@"c:\temp"就表示c:\temp; 所以,@的作用就应该是忽略转义字符的作用. 2、如果字符串中有",则写成"";如:string aa=@"{ name:""name""}";3、在strin...
继续水题#include int i,x,y,a,b,temp;int cycel(int i);int cycle(int i){ int j = 1; while( i != 1) { if(i%2) i = 3*i+1; el...
分类:
其他好文 时间:
2015-03-10 10:07:37
阅读次数:
140