1.包2.运算符public class Operator { public static void main(String[] args) { int a = 5; System.out.println("a = " + a); //a = -a; //...
分类:
编程语言 时间:
2015-07-18 12:20:33
阅读次数:
111
知识点——断言断言是编写测试用例的核心实现方式,即期望值是多少,测试的结果是多少,以此来判断测试是否通过。1. 断言核心方法assertArrayEquals(expecteds, actuals)查看两个数组是否相等。assertEquals(expected, actual)查看两个对象是否相等...
分类:
其他好文 时间:
2015-07-17 20:30:40
阅读次数:
159
//模拟实现boost库下的scoped_array
#include
#include
using namespace std;
template
class scoped_array
{
private:
T * px;
scoped_array(scoped_array const &);
scoped_array& operator=(scoped_array const...
分类:
编程语言 时间:
2015-07-17 16:16:08
阅读次数:
118
//模拟实现boost下的scoped_ptr
#include
#include
using namespace std;
template
class scoped_ptr
{
private:
T * px;
scoped_ptr(scoped_ptr const &);
scoped_ptr& operator=(scoped_ptr const &);
void ...
分类:
编程语言 时间:
2015-07-17 12:01:02
阅读次数:
157
了解JAVA的原理,才有可能真正体会JAVA的一切,学习任何事情,只要能掌握原理,就会比较顺利。 学习JAVA语言很简单,毕竟JAVA语言也只包含五十多个关键词(keyword)与几十个算符(operator),再加上JAVA语法(syntax)也很简单,所以一般人可以很快就学会JAVA语言。
分类:
编程语言 时间:
2015-07-17 11:34:15
阅读次数:
128
用vs2012 打开web.config时,提示如下错误:“Value does not fall within the expected range”;中文提示:“值不在预期的范围内”解决方案:删除解决方案同目录下的.suo 文件。
分类:
其他好文 时间:
2015-07-16 19:24:38
阅读次数:
337
#-*-coding:utf-8-*-__author__='Administrator'fromPyQt4importQt,QtCore,QtGuiimportsys,random,operator,decimal,threading,time,winsoundclassE_24(QtGui.QD...
分类:
其他好文 时间:
2015-07-16 15:44:55
阅读次数:
225
转载自: http://blog.csdn.net/wsjshx/article/details/40743291GitHub链接:https://github.com/CoderMJLee/MJRefresh将XCode升级到6后,报Too many arguments to function c...
分类:
其他好文 时间:
2015-07-16 13:27:56
阅读次数:
145
Java代码如下:FileSystemfs=FileSystem.get(conf);in=fs.open(newPath("hdfs://192.168.130.54:19000/user/hmail/output/part-00000"));抛出异常如下:Exceptioninthread"ma...
分类:
编程语言 时间:
2015-07-16 11:19:38
阅读次数:
240
mystring operator +(const char *str, const mystring &it){ mystring stro; strcpy(stro.s, str); strcat(stro.s, it.s); printf("stro = %p\n", stro.s); ret...
分类:
其他好文 时间:
2015-07-16 02:01:33
阅读次数:
89