存档

文章标签 ‘problem’

Windows下文件搜索软件:Search Everything介绍

2010年1月19日 没有评论

以下是百度百科的介绍

Search Everything是速度最快的文件搜索软件。百G盘几十万个文件,可以在几秒钟之内完成索引;文件名搜索瞬间呈现结果。支持中文,支持正则表达式,可以通过HTTP或FTP分享搜索结  果。如果不满意Windows自带的搜索工具、Total Commander的搜索、Google 桌面搜索或搜索,如果正在使用或放弃了Locate32,都值得推荐这款体积小巧、免安装、免费、速度极快的文件搜索工具。

Search Everything 截图

Search Everything 截图

最喜欢的几大特点

  1. 体积小
  2. 速度快
  3. 支持正则匹配等复杂搜索条件
  4. 实时更新(安装软件比较明显:能实时看到新增加的文件)
  5. 支持远程部署(http/ftp等方式)

对我来说不算致命的几个限制

  1. 仅支持NTFS格式的硬盘分区
  2. 仅支持文件名搜索

在windows vista/win7中都会有受限于UAC,每次启动时都会弹出提示框。取消UAC自然不合适,Search Everything官网的FAQ已经给出了解决办法:Make Vista launch UAC restricted programs at startup with Task Scheduler
基本思想是:把Search Everything配置到计划任务里,每次系统启动时自动打开Search Everything,最关键的一点是计划任务中可以设置“以最高权限运行”。
具体步骤可以参考上述网址,该网页中步骤极其详细,其实只有简单的几步而已。

我的配置如下

  1. 创建计划任务

    第一步 创建任务

    第一步 创建任务

  2. 简单设置计划任务名称等信息。关键是设置“以最高权限执行” 计划任务

    第二步 设置计划任务,关键是“以最高权限运行”

    第二步 设置计划任务,关键是“以最高权限运行”

  3. 创建触发器,选择系统启动时触发操作

    第三步 创建触发器

    第三步 创建触发器

  4. 设定操作:启动程序Search Everything

    第四步 设置操作

    第四步 设置操作

C++拷贝构造函数没有执行的问题

2009年4月29日 没有评论

问题是在这http://lilacbbs.com/forum/d.php?bid=66&id=62395,想了半天想不明白

摘要就是 Fred z = Fred(3);时没有执行拷贝构造函数,查了标准手册才发现原来如此:会不会调用拷贝构造函数由具体编译器实现决定:

Standard C++98 12.8

15 Whenever a temporary class object is copied using a copy constructor, and this object and the copy have the

same cvunqualified

type, an implementation is permitted to treat the original and the copy as two different

ways of referring to the same object and not perform a copy at all, even if the class copy constructor or

destructor have side effects. For a function with a class return type, if the expression in the return statement

is the name of a local object, and the cvunqualified

type of the local object is the same as the function

return type, an implementation is permitted to omit creating the temporary object to hold the function return

value, even if the class copy constructor or destructor has side effects. In these cases, the object is

destroyed at the later of times when the original and the copy would have been destroyed without the optimization.

111) [Example:

class Thing {

public:

Thing();

~Thing();

Thing(const Thing&);

Thing operator=(const Thing&);

void fun();

};

Thing f() {

Thing t;

return t;

}

Thing t2 = f();

Here t does not need to be copied when returning from f. The return value of f may be constructed

directly into the object t2. ]