会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Diligent_Murcielago
博客园
首页
新随笔
联系
订阅
管理
2017年8月21日
项目大数运算实现之链表实现(utilih和SeqList.h)
该文被密码保护。
阅读全文
posted @ 2017-08-21 19:28 Diligent_Murcielago
阅读(0)
评论(0)
推荐(0)
2017年8月14日
IO复用select实现
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 #define SERVER_IP "127.0.0.1" 11 #define SERVER_PORT 9090 12 13 #define LISTEN_QUEUE_SIZE 5 14...
阅读全文
posted @ 2017-08-14 22:22 Diligent_Murcielago
阅读(144)
评论(0)
推荐(0)
TCP通信
摘要: /-------------------------------工具包--------------/ #pragma once #include #include #include #include #include #define SERVER_IP "127.0.0.1" #define SERVER_PORT 9090 #define MAX_BUFFER_SIZE 255 #d...
阅读全文
posted @ 2017-08-14 22:03 Diligent_Murcielago
阅读(164)
评论(0)
推荐(0)
UDP通信
摘要: /***************client.c***************/ #include #include #include #include #include #include #include #include #include int port=8888...
阅读全文
posted @ 2017-08-14 21:58 Diligent_Murcielago
阅读(154)
评论(0)
推荐(0)
bitmap.h和bitmaptest.c(位映射)
摘要: #include #include #include #include #define BITMAP_OK 1; #define BITMAP_ERROR 0; typedef struct bitmap_s{ /*有几个bit位*/ int bits; /*为0个数*/ int zero_count; /*为1的个数*/ i...
阅读全文
posted @ 2017-08-14 21:44 Diligent_Murcielago
阅读(329)
评论(0)
推荐(0)
strsep函数实现及测试
摘要: #include char *strsep(char **stringp, const char *delim) { char *s; const char *spanp; int c, sc; char *tok; if ((s = *stringp)== NULL) return (NULL); for (tok = s;;) ...
阅读全文
posted @ 2017-08-14 21:40 Diligent_Murcielago
阅读(899)
评论(0)
推荐(0)
startswitht和endwhith函数实现
摘要: #include #include #define FAILE 1 #define SUCCESS 0 #include int startswith(char *lhs, char * rhs) { assert(lhs!=NULL); assert(rhs!=NULL); while(* rhs) { if(*rhs++ != *lhs++) r...
阅读全文
posted @ 2017-08-14 21:34 Diligent_Murcielago
阅读(221)
评论(0)
推荐(0)
mysql_register.c(数据库登录)
摘要: #include #include #include #include int main() { printf("Content-Type:text/html;charset=utf-8\n\n"); MYSQL m_sql; mysql_init(&m_sql); MYSQL *sql = mysql_real_connect(&m_sql,"localho...
阅读全文
posted @ 2017-08-14 21:22 Diligent_Murcielago
阅读(313)
评论(0)
推荐(0)
mysql_login.c(数据库登录)
摘要: #include #include #include #include int main() { printf("Content-Type:text/html;charset=utf-8\n\n"); MYSQL m_sql; //创建MYSQL...
阅读全文
posted @ 2017-08-14 21:17 Diligent_Murcielago
阅读(383)
评论(0)
推荐(0)
selectsort(选择排序)
摘要: #include #include using namespace std; //显示数组元素 void show(int *a,int n) { for(int i=0;i<n;i++) { printf("%d",a[i]); } printf("\n"); } //交换 void swap(int &a,int &b) { int temp = ...
阅读全文
posted @ 2017-08-14 21:07 Diligent_Murcielago
阅读(174)
评论(0)
推荐(0)
下一页
公告