当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言:
 

 

    摘要:gnu 较宽松公共许可证 (简体中文翻译版) gnu general public license gnu 较宽松公共许可证 (简体中文翻译版) 声明! 这是一份 gnu 较宽松公共许可证非正式的中文翻译。它不是自由软体基金会所发布,并且不能适用于使用 gnu lgpl 的软体 —— 只有 gnu lgpl 英文原文的版本才行......
    摘要: 案例类别: vas网络 系统类型: cmode 系统版本: 硬件:sun 软件:所有版本 案例标题: cmode放号中的数据库出现lock的处理方法 故障现象: 启动sam_cmode进程不能正常处理工单。 故障描述: 启动以sam_cmode –d方式启动发现sam_cmode始终在处理一个用户......


仿函数和区间(4)
第34章 仿函数与区间(4)

                                                                              mathew wilson /著 【程序编程相关:[Linux专题_APACHE]RedH

【推荐阅读:基于usecase的需求分析过程

【扩展信息:关于ext3文件系统

        刘未鹏(pongba) /译

34.3.6 再进一步,走得太远了!

    你可能想知道:我们能否更进一步,把需要指定字符类型的限制也去掉.答案是:可以,这很容易,见listing 34.6:

 

listing 34.6

struct is_large

: public std::unary_function<. . ., bool>

{

template <typename s>

bool operator ()(s const &file) const

{

return is_large_(c_str_ptr(file));

}

private:

static bool is_large_(char const *file);

static bool is_large_(wchar_t const *file);

};

 

    现在,使用它变得更容易了,如下:

 

n = std::count_if(rs.begin(), rs.end(), is_large());

n = std::count_if(gs.begin(), gs.end(), is_large());

n = std::count_if(gsw.begin(), gsw.end(), is_large());

 


...   下一页
 ·java--imageviewer    »显示摘要«
    摘要:/**the imageviewer *it can be used to view image *author:ginger547 qq:420607 * */import java.awt.*;import java.awt.image.*;import java.io.*;//导入必要的文件//从frame继承public class imageviewer extends frame { ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE