Cpp queue: to show how queue works in C++