Chinaunix首页 | 论坛 | 博客
  • 博客访问: 443176
  • 博文数量: 113
  • 博客积分: 446
  • 博客等级: 下士
  • 技术积分: 1229
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-09 16:01
个人简介

Let's go!!!!!

文章分类

全部博文(113)

文章存档

2019年(5)

2018年(4)

2017年(9)

2016年(5)

2015年(39)

2014年(6)

2013年(28)

2012年(17)

发布时间:2013-01-22 10:02:38

一.前言:C语言程序经过编译连接后形成编译、连接后形成的二进制映像文件由栈,堆,数据段(由三部分部分组成:只读数据段,已经初始化读写数据段,未初始化数据段即BBS)和代码段组成,如下图所示: 1.栈区(stack):由编译器自动分配释放,存放函数的参数值,局部变量等值。其操作方式类似于数据结构中的栈。2.堆区(hea.........【阅读全文】

阅读(731) | 评论(0) | 转发(0)

发布时间:2013-01-21 18:10:28

//server.c #include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <netinet/in.h>#include <sys/socket.h>#include <sys/wait.h>#include <unistd.h>#include <arpa/inet.h>#include <sys/time.h>#include <sys/types.h>#define MAXB.........【阅读全文】

阅读(872) | 评论(0) | 转发(0)

发布时间:2013-01-21 17:47:17

//server.c#include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<sys/socket.h>#include<string.h>#include<sys/types.h>#include<netinet/in.h>#include<netdb.h>#include<errno.h>#define exit_err(str) do{perror(str);exit(1);}while(0);#define port  5555int main(){struct.........【阅读全文】

阅读(860) | 评论(0) | 转发(0)

发布时间:2013-01-13 11:27:40

串的匹配#include<stdio.h>#include<string.h>#include<stdlib.h> void subStr(char *str1,char *sub,int len_sub,int start){ if(NULL==str1 || NULL==sub) return;  char *ptr; ptr=str1+start;  while(len_sub--) { *sub++ = *ptr++; } *sub='\0';}i......【阅读全文】

阅读(720) | 评论(0) | 转发(0)

发布时间:2013-01-01 10:39:23

//链队列 #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct{ char name[10]; int age; }QElemType; struct Qnote{ QElemType data; struct Qnote *next; }; typedef struct Qnote Note; typedef struct{ Note *front; //队头指针 Note *rear; //队尾指针 }LinkQueue; ......【阅读全文】

阅读(1150) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册