- 1>>
- struct node
- {
- int x,y,step;
- }a,temp;
- bool operator < (const node &x,const node &y)
- {
- return x.step>y.step;
- }
- 2>>
-
- struct node
- {
- int x;
- int y;
- int step;
- friend bool operator <(node a,node b)
- {
- return a.step>b.step;
- }
- };
- node a, temp;
未完 下次补!
优先队列(下次总结完整)
最新推荐文章于 2023-08-20 14:09:28 发布