Chinaunix首页 | 论坛 | 博客
  • 博客访问: 441179
  • 博文数量: 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)

发布时间:2014-12-10 22:33:44

//qksort.h#ifndef __QKSORT_H#define __QKSORT_Hint qksort(int *data,int i,int j);#endif//qksort.c#include <stdio.h>#include <malloc.h>#include <stdlib.h>#include <time.h>static int pvalue(int *data,int i,int j){   int r[3]={0};   int temp = 0;   srand(.........【阅读全文】

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

发布时间:2014-12-07 00:25:35

 main.c函数#include <stdio.h>#include "sort.h" int main(){   int   array[NUM] = {9,0,7,1,5,4};   int   i = 0;    printf("Before sort:\n");   for(i=0;.........【阅读全文】

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

发布时间:2014-12-05 20:33:42

TCP三次握手所谓三次握手(Three-way Handshake),是指建立一个TCP连接时,需要客户端和服务器总共发送3个包。  三次握手的目的是连接服务器指定端口,建立TCP连接,并同步连接双方的序列号和确认号并交换 TCP 窗口大小信息.在socket编程中,客户端执行connect()时。将触发三次握手。  第一.........【阅读全文】

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

发布时间:2013-09-30 12:42:19

//驱动程序#include <linux/module.h>#include <linux/init.h>#include <linux/irq.h>#include <linux/platform_device.h>#include <mach/regs-gpio.h>#include <mach/hardware.h>#include <mach/gpio.h>#include <asm/irq.h>#include <linux/device.h>#include <linux/poll.h>#include <linux/interrupt.h>#in.........【阅读全文】

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

发布时间:2013-09-12 09:06:49

assert宏的原型定义在<assert.h>中,其作用是如果它的条件返回错误,则终止程序执行,原型定义:#include <assert.h>void assert( int expression );  assert的作用是现计算表达式 expression ,如果其值为假(即为0),那么它先向stderr打印一条出错信息,然后通过调用 abort 来终止程序运行。请看下面的程序清单ba.........【阅读全文】

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

登录 注册