2013年6月5日

Linux 下 简单客户端服务器通讯模型(TCP)

摘要: 服务器端:server.c#include<stdio.h>#include<stdlib.h>#include<errno.h>#include<string.h>#include<sys/socket.h>#include<sys/types.h>#include <stdio.h>#include <unistd.h>#include <netdb.h>#include <netinet/in.h>#define ServerPort 6080#define MaxUs 阅读全文

posted @ 2013-06-05 16:02 净坛使者 阅读(1270) 评论(0) 推荐(0)

数据结构(C语言版)---第二章2.8-2.11 动态链表

摘要: 主要实现以下几个接口:1. 顺序创建动态链表。2. 打印所有链表内容。3. 取得特定位置的链表内容。4. 向指定位置插入链表元素。5. 将两个链表整合成一个链表。具体代码如下,实现还是生成动态库。LinkList.h#ifndef _LINK_LIST_H#define _LINK_LIST_H#include #include #include #define OK 1#define ERROR -1typedef int ElemType;typedef int Status;typedef struct LNode_{ ElemType data; struct LNod... 阅读全文

posted @ 2013-06-05 10:31 净坛使者 阅读(1124) 评论(2) 推荐(0)

导航