Is there a way in C++ where an objects has argument added upon it, with an array such as:
int x = 1; int y = 2; Object myObject( x, y )[5]; // does not work
You haven't mentioned which language yet, but in C# 3.0 you can get close with collection initializers:
var myObject = new List() { new Object(x,y), new Object(x,y), new Object(x,y), new Object(x,y), new Object(x,y) };