Optimizing declaring repeat variables?
<p>Is there anyway in which to avoid doing something like this:</p>

<pre><code>std::queue&lt;myStruct&gt;  part1, part2, part3, part4, part5, part6, part7, part8, part9, part10;

void setup(){
myVector.push_back(part1);
myVector.push_back(part2);
myVector.push_back(part3);
myVector.push_back(part4);
myVector.push_back(part5);
myVector.push_back(part6);
myVector.push_back(part7);
myVector.push_back(part8);
myVector.push_back(part9);
myVector.push_back(part10);
}
</code></pre>

<p>Although this only goes up to part10 I may be going up towards 50 or more. Is it just a part of coding that somewhere it has to be declared or is there a dynamic way I can declare and assign these to the myVector these queues without writing it like this?</p>

<p>TIA</p>
