Chinaunix首页 | 论坛 | 博客
  • 博客访问: 437662
  • 博文数量: 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-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;.........【阅读全文】

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

发布时间:2013-09-11 21:03:57

#include <stdio.h>unsigned char  aa[3][4]={{0,1,2,3},{3,4,5,6},{6,7,8,9}};void test(unsigned char (*bb)[4]){  int i=0,j=0;  for(i=0;i<3;i++)  {      for(j=0;j<4;j++)      {       printf("%d ",*(*(bb+i)+j));//   &n.........【阅读全文】

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

发布时间:2013-09-09 11:02:45

#include <stdio.h> #include <stdlib.h>#include <math.h>#define max(a,b) (((a) > (b)) ? (a) : (b))#define eps 1e-6 float mysqrt(float n) {   if(n<0)  return n;   float ans;    float low,up;    low=0,up=max(n,1);    ans=(low+up)/2;  &nbs.........【阅读全文】

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

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

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

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

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

登录 注册