I need create 220 object. The normal creation is like the code below; Is there any way more easy to create them? maybe a for Loop...
const int ID_box1 = 1;
box1 = new Boxes(ID_box1, position(10,10);
box1->Append("option 1");
box1->Append("option 2"); etc..
// each box have 80 options:
std::vector<Boxes>sounds even better, frankly. Give it a try. (if nothing else, it may solve the missing)in your posted code because you don't need to do that anymore).std::vector. To add the options, you might want to construct the name of the option usingstd::to_string. There are plenty of resources out there such as good books to teach you how to use arrays and loops. We don't teach people basic stuff like this from scratch here.