C++标准库 队列 怎么在多个函数内调用? 就好像全局变量一样.
你把queue定义在函数外不就行了。。像全局变量那样
**By convention, global variables are declared at the top of a file, below the includes, but above any code. **
一个是全局变量方法,另一个是把这个队列作为函数参数传到各个函数中去使用