button btnarray[8];
int WinMain()
{
int arraysize=ArraySize(btnarray, button);//geting the array size
//btnarray.resize(8);
int i=0;
for (i; i<arraysize; i++)
{
int inttop=150 + (i*50);//these these math
btnarray[i].setTop(inttop);
i'm debuging these code. why i get, when i=0, 336 on inttop?
don't make sence. if i=0, the inttop=150... i'm confused :(
(even with these bug, the button is positioned in right place. but using vectors is worse :(
have something to do with copy constructors of the button?