Eclipse自带Junit插件,不用安装就能在项目中编写测试用例,非常方便。在项目中添加Junit库在编写测试用例之前,需要先引入Junit。对项目根目录右键,选择Properties,Java Build Path,Libraries,如图:Add Library,选择Junit:点Next选择...
分类:
系统相关 时间:
2014-08-21 01:35:03
阅读次数:
290
Path类是功能最强大的形状类,它能够包含任何简单形状、多级形状及更更复杂的曲线。Path.Data属性,该属性接受一个Geometry对象,该对象定义路径包含的一个或多个图形,Geometry是一个抽象类,指定Data时需要使用以下Geometry类的派生类: 路径和几何图形之间的区别:几何图形定...
分类:
其他好文 时间:
2014-08-21 01:33:13
阅读次数:
227
如要需要支持Stage3D,采用GPU来渲染,需要设置wmode="direct",在FB中,对于web和air设置方法不同:1.web:需要在web的html模板中,添加参数:var params = {}; params.wmode = "direct";2.air:需要在bin-dubeg.....
分类:
其他好文 时间:
2014-08-21 00:09:23
阅读次数:
211
1.mysql服务无法启动,报1067错误解决方案:1).把mysql服务端解压目录新加一个my.ini文件,内容如下[mysqld]# set basedir to installation path, e.g., c:/mysql# 设置为MYSQL的安装目录basedir=c:/tool/my...
分类:
数据库 时间:
2014-08-21 00:04:03
阅读次数:
286
一.环境配置Myeclipse中虽然已经集成了maven插件,但是由于这个插件版本较低,建立maven project会出现错误。解决办法:自己到官网http://maven.apache.org/下载最新版本的maven插件,解压,在环境变量中注册。新建环境变量M2_HOME在PATH里加入mav...
分类:
编程语言 时间:
2014-08-20 20:59:12
阅读次数:
279
Description
Problem E: How many 0's?
A Benedict monk No. 16 writes down the decimal representations of all natural numbers between and including
m and n, m ≤ n. How many 0's will he write down?
...
分类:
其他好文 时间:
2014-08-20 19:42:02
阅读次数:
224
1、错误描述
八月 20, 2014 7:10:18 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/FusionCharts] threw exception [java.lang.NoClassDefFo...
分类:
编程语言 时间:
2014-08-20 19:38:52
阅读次数:
281
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javauname -a显示系统隐藏文件。在终端(Terminal)中输入如下命令:defaults write ~/Library/Preferences/c...
分类:
其他好文 时间:
2014-08-20 19:33:42
阅读次数:
206
在Windows下的路径分隔符和Linux下的路径分隔符是不一样的,当直接使用绝对路径时,跨平台会暴出“No such file or diretory”的异常。比如说要在temp目录下建立一个test.txt文件,在Windows下应该这么写:File file1 = new File ("C:\...
分类:
编程语言 时间:
2014-08-20 19:32:32
阅读次数:
195
#include
void temp(int *m,int *n)//交换的是指定地址中存储的值
{
int t;
t=*m;
*m=*n;
*n=t;
}
void main()
{
int a,b,c;
int *p,*q,*w;
p=&a;
q=&b;
w=&c;
scanf("%d%d%d",p,q,w);
if(a>b)
temp(p,q);
if(a>c)
...
分类:
其他好文 时间:
2014-08-20 18:06:32
阅读次数:
139