#include#include#include#define random(x)
(rand()%x)void main(){ srand((int)time(0)); for(int x=0;x<10;x++)
printf("%d/n",random(100...
分类:
编程语言 时间:
2014-06-29 15:34:25
阅读次数:
302
最近写了一个shell脚本,用到了cp、time、cut、awk命令,把他们的使用方法给写下来:1.cp和mvcp命令:用来完成文件的复制,从源文件夹复制到目标文件夹。执行后源文件夹和目标文件夹均有源文件。mv
命令:用来移动文件。执行后,源文件夹中没有源文件。我经常用mv命令来重命名文件注意:cp...
分类:
系统相关 时间:
2014-06-29 14:03:19
阅读次数:
5085
time_t time(time_t
*t);如果t是空指针,直接返回当前时间。如果t不是空指针,返回当前时间的同时,将返回值赋予t指向的内存空间。函数: ctime功 能:
把日期和时间转换为字符串用 法: char *ctime(const time_t *time);#include#incl...
分类:
其他好文 时间:
2014-06-07 06:01:02
阅读次数:
169
确定比赛名次Time Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
10536Accepted Submission(s): 4120Problem Des...
分类:
其他好文 时间:
2014-06-07 05:12:41
阅读次数:
285
2558: 游起来吧!超妹!Time Limit:1 SecMemory Limit:128
MBSubmit:7Solved:3[Submit][Status][Web
Board]Description夏天到了,无聊的超妹跑到了落雪湖里抓鱼吃。结果,游到湖的正中 央时被湖边保安看到了,保安要抓住...
分类:
其他好文 时间:
2014-06-07 05:12:02
阅读次数:
249
#includevoid ShellSort(int *a,int length){ int
jump=length; int temp=0; int change=1; while(jump>0) //while1 { jump=jump/2;
change=1; /***************...
分类:
其他好文 时间:
2014-06-07 03:53:30
阅读次数:
243
1,修改MySQL中的日期的格式
在显示一个日期值时,如果没有特别指定,MySQL按照ISO格式显示日期即(CCYY-MM0DD)。如果不希望按照MySQL的默认格式输出时间和日期值,可以使用date_format()或者time_format()函数按照用户期望的格式重写日期或者时间值
date_...
分类:
数据库 时间:
2014-06-07 03:02:10
阅读次数:
454
Global cursor:To change the cursor in a
application wide fashion, you have to access the Glass Pane and set its cursor,
and then make the glass pane v...
分类:
编程语言 时间:
2014-05-30 11:18:29
阅读次数:
284
–-表现最差的前10名使用查询SELECT TOP 10 ProcedureName =
t.text, ExecutionCount = s.execution_count, AvgExecutionTime = isnull (
s.total_elapsed_time / s.executio...
分类:
数据库 时间:
2014-05-28 11:25:22
阅读次数:
449
吃糖果Time Limit: 6000/3000 MS (Java/Others)Memory
Limit: 65535/32768 K (Java/Others)Total Submission(s): 22376Accepted
Submission(s): 6396Problem Descri...
分类:
其他好文 时间:
2014-05-28 11:11:43
阅读次数:
194