摘要: stack:FILO 1.入栈:如s.push(x); 2.出栈:如 s.pop(). 3.访问栈顶:如s.top(); 4.判断栈空:如s.empty().当栈空时返回true。 5.访问栈中的元素个数,如s.size(); queue:FIFO front():返回 queue 中第一个元素的引 阅读全文
posted @ 2020-08-31 22:55 时光潜流 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<queue> 3 #include<stack> 4 #include<iomanip> 5 using namespace std; 6 7 int map[40][40]; 8 int done[40][40]; 9 10 int 阅读全文
posted @ 2020-08-31 22:46 时光潜流 阅读(313) 评论(0) 推荐(0) 编辑