摘要: #include cstdio>inline bool is_power_of_2(int n){ return (n & (n-1)) == 0;}inline int min_power_of_2_g(int n){ //return n |= n>>16, n |= n>>8, n |= n>>4, n |= n>>2, n |= n>>1, n + 1; 其实是一样的,显得短一... 阅读全文
posted @ 2008-03-30 15:22 千年 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Sub downTheFile(thePath) Response.Clear If isDebugMode = False Then On Error Resume Next End If Dim stream, fileName, debugType fileName = split(thePath,"")(uBound(split(thePath,""))) Set str... 阅读全文
posted @ 2008-03-30 15:14 千年 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 经过不断测试,目前支持的博客站点如下: 准发布(只能发布,但博客不能浏览,多数原因是被阻拦了,使用代理有望解决) 1.http://www.blogger.com/ 2.http://wordpress.com/ 完全版(测试成功,无障碍版) 1.http://kissrat.cnblogs.com/services/metaweblog.aspx 把kissrat换成你自己的博... 阅读全文
posted @ 2008-03-30 15:07 千年 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 用递归实现全排列#include#includechar* Result;int N;void PP(char alphain[],int k){ int i,j,s; char* alphaout; if(k==1) { Result[N-1]=alphain[0]; for(i=0;i { printf("... 阅读全文
posted @ 2008-03-30 15:02 千年 阅读(546) 评论(0) 推荐(0) 编辑