上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: yum -y install gcc automake autoconf libtool make yum serchr gcc-* 阅读全文
posted @ 2017-11-13 17:05 丁培飞 阅读(121) 评论(0) 推荐(0) 编辑
摘要: int iValue;//整型数char sz[10];//字符串sprintf(sz, "%d", iValue);//这句需要头文件#include <stdio.h>/*或者*/itoa(iValue, sz, 10); //这句需要头文件#include <ctype.h>sprintf类似 阅读全文
posted @ 2017-11-09 17:01 丁培飞 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: if (0==strcmp(DATA_ID_SUB,"01")) { IM_facy_handle_request(message_request,data_len); } else { VOD_handler_request(message_request,data_len); } } 阅读全文
posted @ 2017-11-07 18:14 丁培飞 阅读(189) 评论(0) 推荐(0) 编辑
摘要: wipefs进程是啥,占用了百分之90多的cpu wipefs进程是啥,占用了百分之90多的cpu,把这个进程干掉了,过了一天又自动启动了,很多朋友应该遇到过类似的问题。 wipefs是linux自带的程序,用来擦除文件系统数据。正常的wipefs,路径在/usr/bin/wipefs,如果你没有做 阅读全文
posted @ 2017-11-06 13:55 丁培飞 阅读(1791) 评论(0) 推荐(0) 编辑
摘要: 一、概述 Linux比其它操作系统更稳定更安全。理论上Linux是有可能被病毒侵害的。但实际上 Linux机器几乎不可能遭受病毒的攻击。所以我这里的问题是为什么要为Linux准备防病毒软件,为了更好理解,我准备了以下理由,Linux平台安装杀毒软件的原因:1、从Linux平台扫描Windows驱动。 阅读全文
posted @ 2017-11-06 13:12 丁培飞 阅读(5965) 评论(0) 推荐(0) 编辑
摘要: .c文件; VOD_REQUEST VODrequest(void){ unsigned char* message_request="12,1234,192.168.9.98,55051"; int data_len=4; int i; printf("++++++++++++++++++++++ 阅读全文
posted @ 2017-11-04 19:53 丁培飞 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Linux下(以RedHat为范本)添加开机自启动脚本有两种方法,先来简单的; 一、在/etc/rc.local中添加如果不想将脚本粘来粘去,或创建链接什么的,则:step1. 先修改好脚本,使其所有模块都能在任意目录启动时正常执行;step2. 再在/etc/rc.local的末尾添加一行以绝对路 阅读全文
posted @ 2017-11-04 14:31 丁培飞 阅读(64781) 评论(1) 推荐(2) 编辑
摘要: #if 0/*字符串转换为相应的整型数*/int myatoi(const char s[]){ int i,n=0; for (i=0;s[i]>='0'&&s[i]<='9';i++) { n=10*n+(s[i]-'0'); /*(s[i]-'0')能够计算出s[i]中存储的字符所对应的数字值 阅读全文
posted @ 2017-11-01 11:16 丁培飞 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 数组: 指针: 1.char *data; 2.memset(&data,0,sizeof(data)); 整型: 1.int data; 2.memset(data, 0, sizeof(data)); 阅读全文
posted @ 2017-10-31 16:29 丁培飞 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 定义指针字符串:char*v->VOD_REQUEST_ID=“123455” 分配指针字符串地址: char *VOD_SERVER_REQUEST_DATA=(char *)malloc(strlen(v->VOD_REQUEST_ID)+1) ; 复制 ,v->VOD_REQUEST_ID: 阅读全文
posted @ 2017-10-31 09:02 丁培飞 阅读(2099) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #define NN 12 #define MM 20 typedef int elemType ; /*********************************************************** 阅读全文
posted @ 2017-10-30 20:49 丁培飞 阅读(405) 评论(0) 推荐(0) 编辑
摘要: * list.c//#include "stdafx.h"#include "stdio.h"#include <stdlib.h>#include "string.h"typedef int elemType ;/****************************************** 阅读全文
posted @ 2017-10-30 19:57 丁培飞 阅读(288) 评论(0) 推荐(0) 编辑
摘要: rm -f 2010-10-*.log 阅读全文
posted @ 2017-10-30 08:09 丁培飞 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #include <time.h> #include <stdio.h> int main() { time_t start ,end ; double cost; time(&start); sleep(1); time(&end); cost=difftime(end,start); print 阅读全文
posted @ 2017-10-25 22:37 丁培飞 阅读(6413) 评论(0) 推荐(0) 编辑
摘要: [cpp] view plain copy print? #include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> int main(int argc,char *argv[]) { const ch 阅读全文
posted @ 2017-10-25 10:29 丁培飞 阅读(9573) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页