1 设置path, 在windwos 7下要重启2 重启后,cmd----ant -version
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib原来是只安装了jre, 没有安装jdk...
分类:
其他好文 时间:
2014-06-07 04:37:11
阅读次数:
209
条款35 placement new
直接调用构造函数是行不通的,然而可以通过使用placement new来哄骗编译器调用构造函数:
void *operatornew(size_t, void* p) throw()
{ return p;}
placement new是operator new的一个标准的重载版本,也位于全局名字空间中,但和我们通常看到的operator new不同,...
分类:
编程语言 时间:
2014-06-05 09:20:32
阅读次数:
315
在看这个例子之前,可以先看看:详解C和C++中的const和const和static变量的存放位置这样将会对const有非常全面的了解和认识:
下面我们将通过下面的例子看看const的一些非常不易发觉的错误:
#include
using namespace std;
class String
{
public:
friend ostream& operator<<(ostream& os...
分类:
其他好文 时间:
2014-06-05 02:53:26
阅读次数:
273
条款11:在operator = 中处理"自我赋值"...
分类:
其他好文 时间:
2014-06-04 21:01:03
阅读次数:
287
RMAN>backupdatabaseformat=‘/oracle_rman/%d_%s.dbf‘plusarchivelog;
Startingbackupat31-7月-11
currentlogarchived
usingtargetdatabasecontrolfileinsteadofrecoverycatalog
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:sid=137devtype=DISK
RMAN-00571:==========..
分类:
其他好文 时间:
2014-06-02 03:06:41
阅读次数:
358
Divide two integers without using multiplication, division and mod operator.
不使用乘法、除法和求模运算求两个数相除。...
分类:
其他好文 时间:
2014-06-01 18:16:23
阅读次数:
311
1、错误描述
五月 30, 2014 11:33:57 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expected hash. flag evaluated instead to freemarker.template.TemplateBooleanModel$2...
分类:
其他好文 时间:
2014-06-01 11:21:47
阅读次数:
401
#include
using namespace std;
//template
class Int
{
friend ostream& operator
public:
Int(int i):m_i(i)
{
}
Int& operator++()
{
++(this->m_i);
r...
分类:
其他好文 时间:
2014-06-01 09:00:22
阅读次数:
209
DescriptionAn ascending sorted sequence of
distinct values is one in which some form of a less-than operator is used to
order the elements from smalle...
分类:
其他好文 时间:
2014-05-30 14:31:10
阅读次数:
297
经验:令赋值(assignment)操作符返回一个reference to *this --》 这样可以实现级联赋值...
分类:
编程语言 时间:
2014-05-25 13:33:44
阅读次数:
286