so I was wondering how to push int's into an array. In other languages that I learned, I can just call the push() method. But looking around, people say that I need to use priority_queue. What is it and can I use it in Allegro?

Recommended Answers

All 3 Replies

so what you're saying is that I can't use push() for an array? Instead you want me to use a vector? Or is push_back available for an array?

Sorry, just a little bit confuzled

push_back is a function that belongs to std::vector, anything you do to an array has to be done manually.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.