会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
212
213
214
215
216
217
218
219
220
···
341
下一页
2013年9月7日
linux中sed的用法
摘要: sed命令行格式为: sed [-nefri] ‘command’ 输入文本/文件 常用选项: -n∶取消默认的输出,使用安静(silent)模式。在一般 sed 的用法中,所有来自 STDIN的资料一般都会被列出到屏幕上。但如果加上 -n 参数后,则只有经过sed 特殊处理的那一行(或者动作)才会
阅读全文
posted @ 2013-09-07 18:10 emanlee
阅读(121949)
评论(4)
推荐(5)
2013年8月17日
eclipse+pydev (python) 配置出错
摘要: 错误:eclipse+pydev 配置出错,就是在选择python interpreter那一步:See error log for details.com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: ...
阅读全文
posted @ 2013-08-17 18:30 emanlee
阅读(647)
评论(0)
推荐(0)
2013年8月9日
bash 读入文件
摘要: Suppose we have a file contains the following information, termed input_file:A 0B 1C 21.Read file one per line(1):while read linedo printf ...
阅读全文
posted @ 2013-08-09 15:31 emanlee
阅读(810)
评论(0)
推荐(0)
2013年7月13日
GCC编译C程序源代码
摘要: 编译简单的C程序 C语言经典的入门例子是HelloWorld,下面是一示例代码: #includeintmain(void){ printf("Hello,world!\n");return0;} 我们假定该代码存为文件‘hello.c’。要用gcc编译该文件,使用下面的命令: $gcc-g-Wallhello.c-ohello 该命令将文件‘hello.c’中的代码编译为机器码并存储在可执行文件‘hello’中。机器码的文件名是通过-o选项指定的。该选项通常作为命令行中的最后一个参数。如果被省略,输出文件默认为‘a.out’。 注意到如果当前目录中与可执行文件重名的文件已
阅读全文
posted @ 2013-07-13 14:48 emanlee
阅读(4269)
评论(0)
推荐(0)
C语言一维数组中的数据随机排列
摘要: #include #include void randomlize(int *a, int n){ int i = 0,j = 0, k = 0; for(i = 0; i < n; i++) { j = rand()%(n-i)+i; k = a[i]; a[i] = a[j]; a[j] = k; } }int main(void){ int i; int a[]={1,2,3,4,5,6,7,8,9}; randomlize(a,9); for(i = 0; i < 9; i++) { printf("%d ",a[i]); } return ...
阅读全文
posted @ 2013-07-13 08:52 emanlee
阅读(2439)
评论(0)
推荐(0)
C语言计算程序运行时间
摘要: #include#include #include "time.h" int main( void ) { long i = 1000000000L; clock_t start_time, end_time; double duration_time; start_time=clock(); while( i-- ) ; end_time = clock(); duration_time = (double)(end_time-start_time) / CLOCKS_PER_SEC; printf( "duration: %lf seconds\n"
阅读全文
posted @ 2013-07-13 08:26 emanlee
阅读(2234)
评论(0)
推荐(0)
2013年7月12日
C语言动态生成二维数组
摘要: # 动态创建二维数组示例#include "stdlib.h" #include "stdio.h" #include int main() { int i,j; int n; // 这个是需要指定二维数组的行数 int (*p)[10]; scanf("%d",&n);// 取得行数 // 动态生成二维数组,指定列数为10,如果想改,自己修改里面的参数,如果想定义n行2列就为: p=(int (*)[2])malloc(n*2*sizeof(int)); p=(int (*)[10])malloc(n*10*sizeof(i
阅读全文
posted @ 2013-07-12 16:20 emanlee
阅读(5171)
评论(0)
推荐(0)
VC 设置 Stack Overflow
摘要: C/C++ stack overflow, 怎样设置stack大小?解决方案 (1) vc6.0: project->setting->link->project options->Output->Reserve(2) 或者,把数组弄成全局变量或者malloc出来
阅读全文
posted @ 2013-07-12 11:35 emanlee
阅读(459)
评论(0)
推荐(0)
2013年7月3日
vsphere client cd/dvd 驱动器1 正在连接
摘要: esxi 5.1选择了客户端设备,打开控制台后,CD/DVD一直显示“CD/DVD驱动器1 正在连接”解决方法:vSphere Client客户端问题,关闭和重新打开vSphere Client客户端即可。
阅读全文
posted @ 2013-07-03 08:49 emanlee
阅读(5698)
评论(0)
推荐(0)
2013年6月27日
使用SecureCRT上传和下载文件
摘要: SecureCR 下的文件传输协议有ASCII 、Xmodem 、Ymodem 、Zmodem。ASCII:这是最快的传输协议,但只能传送文本文件。Xmodem:这种传输协议速度较慢,但由于使用了CRC错误侦测方法,传输的准确率可高达99.6%。Ymodem:这是Xmodem的改良版,使用了1024...
阅读全文
posted @ 2013-06-27 17:22 emanlee
阅读(2759)
评论(0)
推荐(1)
上一页
1
···
212
213
214
215
216
217
218
219
220
···
341
下一页