Chinaunix首页 | 论坛 | 博客
  • 博客访问: 440485
  • 博文数量: 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-05-20 10:52:34

gcc:    c语言编译器是编译的前端程序,它通过调用其他程序来实现将程序源文件编译成目标文件的功能。g++:    c++语言编译器是编译的前端程序,它通过调用其他程序来实现将程序源文件编译成目标文件的功能。cpp:预处理工具,将包含include的文件插入原文件中,将宏定义展开,根据条件编译命令选择.........【阅读全文】

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

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

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

阅读(743) | 评论(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.........【阅读全文】

阅读(885) | 评论(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.........【阅读全文】

阅读(880) | 评论(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......【阅读全文】

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

登录 注册