![]() |
#2
rjsp2021-04-03 09:44
|
clComp起到什么作用?涉及到什么知识点?
以及operator()是函数吗?为什么一定要添加operator()?如果是函数为什么后面还有个带2个参数的括号?
代码如下:
struct classComp{
bool operator()(int i,int j){return(i<j);}
}clComp
bool operator()(int i,int j){return(i<j);}
}clComp