For example:
class Hooks {
public:
std::string text;
std::string hookfont;
HookFromEncouter()
{
text = "Would you befriend an elf? ";
hookfont = "COPRGTB.ttf";
}
HookFromEncouter(string text1, string hookfont1)
{
text = text;
hookfont = hookfont1;
}
};
I need to store arrays of this object in a queue:
How do I create and access such a queue with object arrays of variable length? Or static length?
Such as:
queue<Hooks[]> Hooks_queue;
Great. This code gives me an error though:
vector<Hooks> hooks_import;
hooks_import.push_back(Hooks());
hooks_import.push_back(Hooks());
Hooks_queue.push(hooks_import);
Error: No instance of overloaded function
queue<vector<Hooks>>?