20 lines
310 B
C++
20 lines
310 B
C++
|
#include <ostream>
|
||
|
#include <queue>
|
||
|
#include <array>
|
||
|
#include <iostream>
|
||
|
|
||
|
|
||
|
int main() {
|
||
|
std::queue<int> queue;
|
||
|
std::array<int, 4> range = {1,2,3,4};
|
||
|
|
||
|
queue.push_range(range);
|
||
|
|
||
|
while (!queue.empty()) {
|
||
|
std::cout << queue.front() << std::endl;
|
||
|
queue.pop();
|
||
|
}
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|