#include #include //法一int main(){ double temar[10000]; int i=0,tmp; while(1) { scanf("%lf",&temar[i]); if(temar[i] == 999) ...
分类:
其他好文 时间:
2015-06-18 13:22:11
阅读次数:
110
#include #include #includeint main(){ int n,len; char str[10]; scanf("%d",&n); while(n--) { int tmp; scanf("%s",str); ...
分类:
其他好文 时间:
2015-06-18 13:16:59
阅读次数:
129
父进程文件句柄被子进程占用场景描述:1.父进程A使用函数fopen打开(创建)一个磁盘文件file.exe.tmp2.父进程进行长时间的边下载边写入3.下载写入完成后,使用fclose关闭文件句柄4.重命名file.exe.tmp为file.exe以上为理想情况下的代码执行流程。问题:在第四步,重命...
分类:
系统相关 时间:
2015-06-18 13:08:18
阅读次数:
183
源博客http://blog.itpub.net/24996904/viewspace-769327/在/etc/default/目录下有个rcS文件,文件内容如下:## /etc/default/rcS## Default settings for the scripts in /etc/rcS....
分类:
系统相关 时间:
2015-06-18 09:20:27
阅读次数:
214
ror 学习笔记2在railsapp的config文件夹中新建unicorn.rb内容如下worker_processes2working_directory"/home/mage/boleht"listen"/tmp/unicorn.boleht.sock"listen19555, :tcp_no...
分类:
其他好文 时间:
2015-06-17 21:19:25
阅读次数:
122
#include
#include
#include
#include
char *my_itoa(int value, char *s)
{
int sign;
int i = 0,j,k;
char *tmp = (char *)malloc(sizeof(char)*strlen(s));
if((sign=value) < 0) //记录符号,使value为正数
va...
分类:
其他好文 时间:
2015-06-17 15:24:47
阅读次数:
105
#include #include int main(){ int n,nc,i; scanf("%d",&n); while(n--) { int sum=0,tmp; scanf("%d",&nc); for(i=0; i<nc;...
分类:
其他好文 时间:
2015-06-17 14:58:13
阅读次数:
109
SDL全称是Simple DirectMedia Layer,是一个开源的、跨平台(win32,linux,mac)的多媒体开发c语言库。官方网站 http://www.libsdl.org/第一步,下载源文件首先去这个页面http://www.libsdl.org/tmp/download-2.0...
HDFS数据管理1、设置元数据与数据的存储路径,通过
dfs.name.dir,dfs.data.dir,fs.checkpoint.dir(hadoop1.x)、
hadoop.tmp.dir,dfs.namenode.name.dir,dfs.namenode.edits.dir,dfs.datanode.data.dir(hadoop2.x)等属性来设置;2、经常执行HDFS文件系统检查工...
分类:
其他好文 时间:
2015-06-16 23:03:33
阅读次数:
329
手动刷入recovery的方法:a:fastboot下刷recovery的方法:fastbootflashrecovery【recovery文件的路径】b:手机在系统模式或者recovery模式下刷入recovery:首先将本地的recovery文件push到手机的data/local/tmp目录下...
分类:
其他好文 时间:
2015-06-16 22:40:46
阅读次数:
644