test_rel_ops.cxx
来自「DTMK软件开发包,此为开源软件,是一款很好的医学图像开发资源.」· CXX 代码 · 共 33 行
CXX
33 行
/*
fsm
*/
struct Y
{
int x;
Y(int x_) : x(x_) { }
bool operator==(Y const &that) const { return x == that.x; }
bool operator< (Y const &that) const { return x < that.x; }
};
#include <vcl_rel_ops.h>
int function()
{
Y x(2), y(3);
if (x == y) return 1;
if (x != y) return 2;
if (x < y) return 3;
if (x > y) return 4;
if (x <= y) return 5;
if (x >= y) return 6;
return 0;
}
int test_rel_ops_main(int /*argc*/,char* /*argv*/[])
{
function();
return 0;
}
VCL_REL_OPS_INSTANTIATE(Y);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?