#include<map>
using namespace std;
const int N=10;
struct node{
int f[N];
bool operator < (const node& p) const {
for(int i=0;i<N;i++){
if(f[i]==p.f[i]) continue;
return f[i]<p.f[i];
}
return false;
}
};
int main()
{
map<node,bool> m;
node n;
m[n]=1;
return 0;
}
用map对数组进行标记
猜你喜欢
转载自blog.csdn.net/qq_40679299/article/details/81082258
今日推荐
周排行