IntersectRect 两矩形相交形成的新矩形The IntersectRect function calculates the intersection of two source rectangles and places the coordinates of the intersecti....
分类:
其他好文 时间:
2014-07-10 10:33:52
阅读次数:
272
=====>友元运算符#include using namespace std;class Test{ public: Test(int a = 0) { Test::a = a; } friend Test ope...
分类:
编程语言 时间:
2014-07-10 10:31:50
阅读次数:
214
Ubuntu软件源的修改比较简单,一种方法是直接修改软件软列表:只需要把所需的软件源添加到或直接替换原来的系统源列表就可以,列表文件就是/etc/apt/sources.list。在终端执行以下命令:#进入所在目录:cd /etc/apt/#备份源列表:sudo cp sources.lis...
分类:
其他好文 时间:
2014-07-10 10:31:12
阅读次数:
295
亲测安装php1、tar zvxf php-5.3.8.tar.gz 2、cd php-5.3.83、./configure \ --prefix=/usr/local/php \--with-mysql=/usr/local/mysql \ --with-apxs=/usr/local/apach...
分类:
Web程序 时间:
2014-07-10 10:30:29
阅读次数:
261
报错提示为:org.hibernate.hql.ast.QuerySyntaxException: customers is not mapped [from customers as c]服务层代码 为:public void findCustomerAndOrders(){ Ses...
分类:
移动开发 时间:
2014-07-10 10:29:13
阅读次数:
320
前些天在工作上遇到这个需求,在GitHub找到一个开源代码可以用,Fork了一个版本,整理一下发出来。①.Net项目中使用Nuget安装一个 NPOI 包 https://github.com/tonyqus/npoi②再Nuget安装 Chsword.Excel2Object 包 https://...
分类:
数据库 时间:
2014-07-10 10:27:57
阅读次数:
2836
1.RadioButtonRadioButton被称作为单选框,通常都是以组的形式出现,可以在一组控件中选择一个。RadioButton的使用首先需要加入,在这个组中,我们进行单选按钮的声明。 1 7 8 15 16 23 RadioButton这里我...
分类:
其他好文 时间:
2014-07-10 10:25:56
阅读次数:
254
方法一:1 min-height:500px;/*解决ie8.9.ff.chromet*/2 height:100%;/*解决ie6.7*/3 _height:500px;/*解决ie6超出自动溢出*/View Code方法二:1 min-height:400px;/*解决ie8.9.ff.chro...
分类:
Web程序 时间:
2014-07-10 10:24:43
阅读次数:
280
实现方法是在application中定义一个集合存储所有的Activity对象,在Activity创建时添加进集合中,在程序退出时,finish掉所有的Activity即可。步骤如下:1.自定义Application,MyApplication.java代码如下: 1 public class My...
分类:
移动开发 时间:
2014-07-10 10:24:07
阅读次数:
198
如果直接将vim编辑的文字复制粘贴到一些blog的编辑器中,这些代码将会是死板的白纸黑字。如果能加入关键字高亮功能就好了,这样代码阅读起来会很方便。一些blog的编辑器提供了这项功能,一些没有,一些支持的语言不够全面。好在vim的syntax支持的语言够多,绝大部分流行的语言都可以直接找到支持。如果...
分类:
Web程序 时间:
2014-07-10 10:23:27
阅读次数:
287