Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们也可以在微处理器中进行队列操作吗?(假设微处理器支持堆栈操作)
不,只要有一个寄存器和操作来支持它,堆栈就是内置的。队列没有类似的支持。
如果你想要一个队列,你需要在代码中实现它。
您始终可以在软件中实现队列。请参阅此 Q 了解更多信息:
StackOverflow.com/questions/69192/using-stack-as-queue
有关如何使用堆栈实现队列的详细讨论:
GeeksforGeeks.org/?p=5009
祝你好运!!