技术的乐趣在于分享,欢迎多多交流,多多沟通。
全部博文(877)
发布时间: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 .........【阅读全文】
发布时间: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).........【阅读全文】