#include "stdio.h"#include "stdlib.h"#include "string.h"#include "net/if.h"#include "arpa/inet.h"#include "linux/sockios.h"int main(int argc,char *arg...
分类:
其他好文 时间:
2014-11-12 07:04:46
阅读次数:
200
client_thread.c#include #include #include #include #include #include int main(int argc,char *argv[]){ int connect_fd; int ret; char snd_buf[1...
分类:
其他好文 时间:
2014-11-12 07:04:46
阅读次数:
250
上一次折腾nginx还是两年前的事情了。好多配置都忘记了。
捣腾了下阿里云,部署了一下,遇到几个小问题,温故并记录一下吧 :)
分类:
其他好文 时间:
2014-11-12 07:06:04
阅读次数:
150
题目意思能搞成这样我也是服了这个女人了#include #include #include #include using namespace std;int main() { int N = 0; double D = 0; scanf("%d%lf", &N, &D); v...
分类:
其他好文 时间:
2014-11-12 07:05:36
阅读次数:
141
#include#includeint main(int argc,char *argv[]) { int ch; opterr=0; while((ch=getopt(argc,argv,"a:b:c:d:e:"))!=-1) { printf("\n\n\n"); ...
分类:
其他好文 时间:
2014-11-12 07:04:36
阅读次数:
209
(转载请注明出处:http://blog.csdn.net/buptgshengod) 今天想实现在view中返回上一个activity的功能,想了半天。因为在虽然view是包含于一个activity的,但是直接在view中用this取得的对象不是activity而是这个view,直接写activi...
分类:
移动开发 时间:
2014-11-12 07:04:25
阅读次数:
172
typedef unsigned int size_t; void * my_memcpy ( void *dest, const void *src, size_t num ) { void* ret = dest; while (num--) { *...
分类:
其他好文 时间:
2014-11-12 07:04:54
阅读次数:
169
#include #include #include #include #include #include #include #include #include #include #define SERVER_PORT 8888 #define MAX_BUF_SIZE 1024 void udpc...
分类:
其他好文 时间:
2014-11-12 07:04:21
阅读次数:
123
char * strdup(char *str) { char * strNew; assert(str != NULL); strNew = (char *)malloc(strlen(str)+1); strcpy(strNew,str); return strNew;} ...
分类:
其他好文 时间:
2014-11-12 07:03:32
阅读次数:
254
#include#includeint my_strcmp(const char*a,const char*b){ while(*a&&*b&&*a==*b) a++,b++; if(*a&&*b) return(*a-*b); else if(*a&&...
分类:
其他好文 时间:
2014-11-12 07:04:39
阅读次数:
173
#include#includeint my_strlen(const char* strDest){ assert(NULL!=strDest); if('\0'==*strDest) return 0; else return(1+my_strlen...
分类:
其他好文 时间:
2014-11-12 07:01:21
阅读次数:
196
随着无线通信网络和移动智能终端的发展,移动互联网逐步主宰了人们的生活与工作,随处可见的是人们低头看手机的情形,无论地铁、公交还是办公室、会议室,等等。信息时代的到来,使得人们获取信息更加便捷,同时也带来了信息过载的问题,每天大量的移动互联网消费让大脑频繁地..
分类:
移动开发 时间:
2014-11-12 02:11:41
阅读次数:
176
mysql的安装对于某个软件的安装,一般有三种方式:1、使用rpm来安装。这个软件包要以.rpm结尾才可以使用rpm包来安装。2、使用通用二进制格式来安装。只不过使用这种安装方式该软件所支持的平台要对应起来才可。3、使用源码方式来安装。这种方式可以来定制自己所需要的功能在这..
分类:
数据库 时间:
2014-11-12 02:11:34
阅读次数:
363
随着无线通信网络和移动智能终端的发展,移动互联网逐步主宰了人们的生活与工作,随处可见的是人们低头看手机的情形,无论地铁、公交还是办公室、会议室,等等。信息时代的到来,使得人们获取信息更加便捷,同时也带来了信息过载的问题,每天大量的移动互联网消费让大脑频繁地..
分类:
移动开发 时间:
2014-11-12 02:11:20
阅读次数:
204
MyISAM储存表的特点:每一个表使用三个文件来保存.frm:表结构定义文件.MYD:表数据文件,储存数据的.MYI:表索引文件Innodb储存表时特点:Innodb在储存表时是将多个表数据共享在一个表空间文件中。这种方式不容易维护表。因此,建议,每一个表使用一个独立的表空间文件。因此,需..
分类:
数据库 时间:
2014-11-12 02:10:23
阅读次数:
278
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
/*
****************************************
*定义了一个循环,定义了一个自定义异常类
*输出(如果输入1):
*1
*内finally
*第一级错误:自定义错误1第..
分类:
其他好文 时间:
2014-11-12 02:10:31
阅读次数:
252
1.下载boost编译后,boost头文件最好拷到/usr/include下,或者在/usr/include下有链接。stage/lib/libboost_*中的库文件最好拷到/usr/lib中。这样用g++运行时,可以不用指定-I$BOOST_INCLUDE和-L$BOOST_LIB.2.运行g++main.cppSourceLine.cppFileTravel.cpp-I$BOOST_INCLUDE-L$B..
分类:
系统相关 时间:
2014-11-12 02:08:30
阅读次数:
194