less.h

来自「用MFC写的RPG游戏」· C头文件 代码 · 共 26 行

H
26
字号
//
// 暥帤楍斾妑僋儔僗(戝暥帤乛彫暥帤傪嬫暿偟側偄)
//
//		Copyright (c) 2000-2001 Chihiro.SAKAMOTO (HyperWorks)
//
#ifndef	__less_h__
#define	__less_h__

class ic_less: public binary_function<const char *, const char *, bool> {
  public:
	result_type operator()(first_argument_type x, second_argument_type y) const
	{
		return stricmp(x, y) < 0;
	}
} ;

class ics_less: public binary_function<const string &, const string &, bool> {
  public:
	result_type operator()(first_argument_type x, second_argument_type y) const
	{
		return stricmp(x.c_str(), y.c_str()) < 0;
	}
} ;

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?