1 #include 2 3 int main(void) 4 { 5 int a,b,c; 6
int temp; 7 printf("please input a b c\n"); 8 scanf("%d %d
%d",&a,&b,&c); 9 10 if(a>b)11 {12 te...
分类:
其他好文 时间:
2014-07-22 23:00:52
阅读次数:
353
CROHomeCRAAddController *temp
=[[CROHomeCRAAddControlleralloc] init]; temp.modalTransitionStyle =
UIModalTransitionStyleFlipHorizontal; temp.modalP...
分类:
移动开发 时间:
2014-05-01 01:43:33
阅读次数:
456
组合数学、-排列组合数----sum求sum=sum*(m--)/i;int c(int
n,int m)//n下标,m上标{ int sum=1; for(int i=1;in-m) m=n-m; int temp=n; for(int
i=1;i1) { up[j]/=temp; d...
分类:
其他好文 时间:
2014-05-01 01:07:44
阅读次数:
409
1:temp = array[i]*i: 2410.0 ms
2:temp = GET(array,i) *i: 2410.0 ms
3:temp = get(array,i)*i: 2950.0 ms
4:int a = get(array,i);temp = a*i: 3340.0 ms
5: int a = array[i];temp = a*i;: 1990.0...
分类:
其他好文 时间:
2014-04-30 22:25:38
阅读次数:
303
根据random方法,Math.random()方法返回的是0到1的随机数(不包含0和1):```javascript//生成k个m到n的随机数,返回数组
function Temp(m,n,k) { var all = new Array(); for (var ...
分类:
Web程序 时间:
2014-04-30 15:20:39
阅读次数:
519
删除用户,创建用户命令drop user goda
cascade;删除用户及其下所有对象,包括表CREATE USER qdcenter IDENTIFIED BY qdcenter DEFAULT
TABLESPACE data1 TEMPORARY TABLESPACE temp1 QUOTA...
分类:
数据库 时间:
2014-04-30 05:00:45
阅读次数:
569
求出两个数的最大公约数 1 int foo(int v1, int v2) 2 { 3
while(v2) { 4 int temp = v2; 5 v2 = v1 % v2; 6 v1 = temp; 7 } 8 9 re...
分类:
其他好文 时间:
2014-04-30 04:42:13
阅读次数:
404
create function [dbo].[HtoSec](@lvalue as
int)RETURNS intBEGINDECLARE @temp intSet @temp = @lvalue * 60 * 60RETURN
@tempENDcreate function [dbo].[GetT...
分类:
数据库 时间:
2014-04-29 22:04:03
阅读次数:
515
//冒泡排序publicclassbubblesorter{publicvoidsort(int[]list){inti,j,temp;booldone=false;j=1;while((jlist[i+1]){done=false;temp=list[i];list[i]=list[i+1];li...
分类:
其他好文 时间:
2014-04-29 17:21:45
阅读次数:
429
冒泡排序,往两个方向泡,一个往小泡,一个网大泡
#include
#include
#include
void bubble_sort(int *a,int n){
int temp;
for(int i=0;i<n;i++)
for(int j=0;ja[j+1]){
temp=a[j];
a[j]=a[j+1];
...
分类:
其他好文 时间:
2014-04-29 13:28:21
阅读次数:
364