上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 49 下一页
摘要: 1 #include 2 #include 3 4 /* 5 *打印出所有的“水仙花数” ,所谓“水仙花数”是指一个三位数,其各位数字立方和等于该数本身。 6 *例如:153 是一个“水仙花数” ,因为 153=1 的三次方+5 的三次方+3 的三次方。 7 *程序分析:利用 循环控制 10... 阅读全文
posted @ 2014-11-25 09:49 wonkju 阅读(229) 评论(0) 推荐(0)
摘要: 选择 ctrl+H,弹出 "查找和替换"对话框,在"查找内容"输入"^p^p",并在"替换为"输入"^p", 并进行"全部替换",即可.如图: 我们从字面都可以猜测到,将所有'两个'空行,替换为'1个'空行,由于是递归,所以意思为,将所有大于一个空行,替换为一个空行. 阅读全文
posted @ 2014-11-24 11:54 wonkju 阅读(212) 评论(0) 推荐(0)
摘要: 使用属性代替公共成员变量,一个很明显的好处是,很容易在一个地方对成员变量进行控制,例如: 1 class Customer { 2 private string name; 3 public string Name { 4 set { 5 ... 阅读全文
posted @ 2014-11-24 03:07 wonkju 阅读(336) 评论(0) 推荐(0)
摘要: 方式一,AppLibrary.WriteExcel.XlsDocument: 所用的库及库源码为:AppLibrary.WriteExcel.XlsDocument,这种方式默认是以excel2003的方式输出(即使机子上只安装office2010),而excel2003最多允许65536行,适合... 阅读全文
posted @ 2014-11-23 21:55 wonkju 阅读(479) 评论(0) 推荐(0)
摘要: 2003及以前版本为65536(即6万多)行,256列2007版:1048576(即1百零多万)行,16384(即1千多)列 阅读全文
posted @ 2014-11-22 13:33 wonkju 阅读(496) 评论(0) 推荐(0)
摘要: 概述 搞了近一周的环境搭建,在csdn上提个问,有位网友说弄一下代理,搜一下,果真有人写博客:Android SDK代理服务器解决国内不能更新下载问题 其实我下了很多个集成好的 adt-bundle-windows,算是可以运行,但是在线安装确实怎么下都下不了,这位网友发的这篇日志中,我用的是第... 阅读全文
posted @ 2014-11-21 01:27 wonkju 阅读(504) 评论(0) 推荐(0)
摘要: 概述 今天试图在ArcMap中将excel数据转成点文件,在"Display XY Data"的时候,无法选择X,Y字段,很是纳闷,原来Excel中列的格式是文本,导致无法选择.有个同学个我的建议,从在导入的.dbf文件中自己再定义新的字段,然后复制过去.我觉得这个方法有点麻烦,网上搜了一下,修改... 阅读全文
posted @ 2014-11-20 01:43 wonkju 阅读(2085) 评论(0) 推荐(0)
摘要: 1 DateTime oldDate = new DateTime(2002,7,15); 2 DateTime newDate = DateTime.Now; 3 // Difference in days, hours, and minutes. 4 TimeSpan ts = newDate ... 阅读全文
posted @ 2014-11-19 12:28 wonkju 阅读(346) 评论(0) 推荐(0)
摘要: 今天打开之前做的项目,突然得到很奇怪的编译错误: Unable to find manifest signing certificate in the certificate网上搜一下,有两个方法,其中一个方法为: 用记事本(纯编辑器)打开项目,删除有如下代码的行: ... ... ... ..... 阅读全文
posted @ 2014-11-19 00:27 wonkju 阅读(261) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 4 //判断 101-200 之间有多少个素数,并输出所有素数. 5 int 6 main(void) { 7 int s = 101, e = 200; 8 int count = 0; //素数总个数. 9 i... 阅读全文
posted @ 2014-11-15 01:02 wonkju 阅读(790) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 49 下一页