C#交流俱乐部

学习为主,互相帮助

博客园 首页 新随笔 联系 订阅 管理

2013年1月5日 #

摘要: #include <iostream>#include <cstring> //#define BYTE char//传递引用void swapr(int & a,int & b);//传递指针void swapp(int * a,int * b);//按值传递void swapv(int a,int b); int main() { using namespace std; int a=3,b=4; swapr(a,b); cout <<a <<"|" <<b<<endl; swapp 阅读全文
posted @ 2013-01-05 14:51 bluce chen 阅读(488) 评论(0) 推荐(0) 编辑

2012年12月28日 #

摘要: //c++为类型建立别名2种方式://1.使用预处理器#define BYTE char//2.使用c++关键字,通用格式typedef char bd;区别1会在编译时替换掉所有的BYTE 而2不会有此问题,只是为已有的类型建立个新名称//--------------------------------//sizeof使用示例 char tt2[]={'1','2','3'}; cout<<sizeof(tt2)<<endl; //print 3 char tt3[]={"123456789"}; / 阅读全文
posted @ 2012-12-28 17:47 bluce chen 阅读(144) 评论(0) 推荐(0) 编辑

摘要: //CLOCKS_PER_SEC 每秒钟包含的系统时间单位数cout<<"Enter the delay time,in seconds: "; float secs; cin >>secs; clock_t delay=secs*CLOCKS_PER_SEC; cout<<"starting\a\n"; clock_t start =clock(); while(clock()-start<delay) ; cout<<"done \a\n"; return 0; 阅读全文
posted @ 2012-12-28 16:43 bluce chen 阅读(977) 评论(0) 推荐(0) 编辑

2012年12月27日 #

摘要: string word; cin >> word; int i,j; for(j=0,i=word.size()-1;j<i;--i,++j) { char temp=word[i]; word[i]=word[j]; word[j]=temp; } cout << word; 阅读全文
posted @ 2012-12-27 18:17 bluce chen 阅读(351) 评论(0) 推荐(0) 编辑

2012年6月5日 #

摘要: urlrewrite 安装配置参考: http://www.tuckey.org/urlrewrite/manual/2.6/#filterparams出现404检查以下web.xml 配置顺序配置web.xml的时候,rewrite一定要在strtus2的上面ru:<filter><filter-name>UrlRewriteFilter</filter-name><filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class><in 阅读全文
posted @ 2012-06-05 14:33 bluce chen 阅读(2194) 评论(0) 推荐(0) 编辑

2012年5月24日 #

摘要: 忙里偷闲-给朋友定制迷你定制版小说阅读器,分享下,觉得有需要就去这里下载 PC定制版 http://wapidd.com/publish.htm 目的:实现一个小说阅读器,右下角显示,大小可调整,可同QQ托盘形式隐藏,双击恢复,可强制桌面显示顶端,透明度自定义及导航窗隐藏 效果图: 根据以上需求,写 阅读全文
posted @ 2012-05-24 19:27 bluce chen 阅读(454) 评论(1) 推荐(0) 编辑

2010年11月8日 #

摘要: public Setting(){ string dirPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Config"); string[] filePaths = Directory.GetFiles(dirPath, "Database.*config"); if (filePaths != null || filePaths.Length > 0) { foreach (string path in filePaths) { Load(path); } }}privat 阅读全文
posted @ 2010-11-08 11:44 bluce chen 阅读(283) 评论(0) 推荐(0) 编辑

2010年8月23日 #

摘要: 最近对线上项目进行了一次缓存方面的优化,本来6月就该写的,但是项目一直忙,就给自己理由偷懒了缓存方面的思考参考代震军的文章比较多,文章地址:http://www.cnblogs.com/daizhj/archive/2009/11/17/1604436.htmlhttp://www.cnblogs.com/daizhj/archive/2009/03/23/1386652.html 我以前项目上一... 阅读全文
posted @ 2010-08-23 21:25 bluce chen 阅读(2774) 评论(6) 推荐(2) 编辑

2010年8月19日 #

摘要: 最近很忙,也很累,忙里偷闲,尝试了下apache solr的安装。第一次接触java的,就和初次安装NET一样部署开发环境折腾来折腾去。几经波折总算成功了分享下个人安装的过程:首先,搜索solr 在IBM找到了篇文章,是关于solr的http://www.ibm.com/developerworks/cn/java/j-solr1由于从来没碰过JAVA,对java的概念只知道和NET运行在fram... 阅读全文
posted @ 2010-08-19 21:29 bluce chen 阅读(346) 评论(0) 推荐(0) 编辑

2010年7月13日 #

摘要: select * from #temp order by viid--测试,查看临时表有什么数据,对应的列名是什么DECLARE E1cursor cursor /* 声明游标,默认为FORWARD_ONLY游标 */FOR select viid from #temp order by viidOPEN E1cursor /* 打开游标 */declare @gid int ;declare @... 阅读全文
posted @ 2010-07-13 10:01 bluce chen 阅读(180) 评论(1) 推荐(0) 编辑