摘要: #include #include #include #define PI 3.1415926535898#define e 2.718281828459using namespace std;///斯特林///n!=sqrt(2*PI*n)*pow(n/e,n)int main(){ int... 阅读全文
posted @ 2014-04-30 23:30 xzenith 阅读(604) 评论(0) 推荐(0) 编辑
摘要: #include #include #include /////////////////////////////////////////////////////////////////in this total program, I replace the array with structure/... 阅读全文
posted @ 2014-04-22 17:58 xzenith 阅读(980) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-04-19 20:39 xzenith 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 定义一种类型的别名,而不只是简单的宏替换。可以用作同时声明指针型的多个对象。比如:char* pa, pb; // 这多数不符合我们的意图,它只声明了一个指向字符变量的指针,// 和一个字符变量;以下则可行:typedef char* PCHAR;PCHAR pa, pb; 这种用法很有用,特别是... 阅读全文
posted @ 2014-04-18 22:08 xzenith 阅读(137) 评论(0) 推荐(0) 编辑
摘要: int insertsearch(int num[],int n){ int low,mid,high; low=1; hign=N; while(lowhigh) return 0; if(nnum[mid]) lo... 阅读全文
posted @ 2014-04-18 21:29 xzenith 阅读(129) 评论(0) 推荐(0) 编辑