Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2603994
  • 博文数量: 877
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 5920
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-05 12:25
个人简介

技术的乐趣在于分享,欢迎多多交流,多多沟通。

文章分类

全部博文(877)

文章存档

2021年(2)

2016年(20)

2015年(471)

2014年(358)

2013年(26)

发布时间:2014-12-26 20:44:16

//欧几里德算法//Author jeffasd#include <stdio.h>typedef unsigned intU32;typedef unsigned charBYTE;#define FALSE0#define TRUE1U32 Gcd(U32, U32);int main(){U32 foo;foo = Gcd(1989, 1590);printf("THe data is %d\n", foo);return 0;}U32 Gcd(U32 M, U32 N){U32 Rem;while(N .........【阅读全文】

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

发布时间:2014-12-26 20:31:48

#include typedef unsigned charBYTE ;typedef unsigned intU32;U32 BinarySearch(BYTE * bpin, U32 ulen, BYTE dest);/*int main(){ #define NUM10BYTE array[NUM] = {0,1,2,3,4,5,6,7,8,9};BYTE foo, var, temp;for(foo = 0; foo < NUM -1; ++foo )for(var = 0; var < NUM - foo -1; ++var).........【阅读全文】

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

发布时间:2014-12-16 09:13:57

#include <stdio.h>typedef unsigned int UINT;long int Fib(int);int main(void){long int foo;foo = Fib(45);printf("the num is : %d\n",foo);return 0;}long int Fib(int N){if(N <= 1)return 1;elsereturnFib(N - 1) +Fib(N -2);}......【阅读全文】

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

登录 注册