About 210,000 results
Open links in new tab
  1. C++ trying to create a queue of 2d points (arrays)

    5 days ago · In c++ it's usually recomended to use std::array instead of such small fixed size c style arrays (and std::vector for dynamic size ones). Code example: #include <queue> …

  2. how can i store array to queue in c++ - Stack Overflow

    Dec 3, 2012 · queue < int* > qq; for (int i = 0; i < N; i++) { int cc[2] = {i, i + 1}; qq.push(cc); } The N is large but not Exact so I want use queue. I want to store many arrays to queue,but the arrays …

  3. c++ - Popping queue of 2d arrays - Stack Overflow

    Mar 7, 2014 · I have a queue of 2d arrays. I would like to look at the elements of the topmost entry of the array. Array list is a queue of type int**. int** target = arraylist.pop(); is correct. However, …

  4. C++ Program to Implement Queue using Array - GeeksforGeeks

    May 14, 2024 · In this article, we will learn how to write a program to implement queues using an array in C++. The queue is a linear data structure that has the following properties:- It has …

  5. c++ - How to put a 2-dimensional array in a queue | DaniWeb

    As you have declared Queue as follows: queue<int> Queue; You cannot simply assign p to it as you are attempting. Looking at your code I see no reason why you don't just assign the values …

  6. Array implementation of queue – Simple | GeeksforGeeks

    Mar 12, 2025 · To implement a queue of size n using an array, the operations are as follows: Enqueue: Adds new elements to the end of the queue. Checks if the queue has space before …

  7. Queue in C\\C++ (FIFO) - How Queues are Implemented with Arrays

    Learn the concept of Queue in C/C++ with syntax & example. Discover the implementation process (insert, delete, display) of queues with arrays & linked list

  8. std::queue - cppreference.com

    Aug 2, 2024 · The std::queue class template is a container adaptor that gives the functionality of a queue - specifically, a FIFO (first-in, first-out) data structure. The class template acts as a …

  9. C++ Program to Implement Queue Using Array - Online …

    Queue implements the FIFO mechanism i.e., the element that is inserted first is also deleted first. In other words, the least recently added element is removed first in a queue. A program that …

  10. Making an Queue of an Array in C++ - Stack Overflow

    Jul 28, 2018 · Now I can't make an queue of an array. Here is the normal code i used: //g++ 5.4.0. /* * MAXSIZE carries the max no of element a queue can have. * nItem carries the no of …

Refresh