[알고리즘] 큐(Queue) FIFO(First In First Out) 먼저 들어온 것이 먼저 나가는 구조로 스택과는 반대되는 개념의 자료구조이다. 다음 숫자들을 삽입/삭제 해보자 7, 3, 2, 삭제 , 5, 삭제 소스코드 구현 (C++ / STL) #include #include using namespace std; int main() { queue q; q.push(7); q.push(3); q.push(2); q.pop(); q.push(5); q.pop(); while (!q.empty()) { cout