why these values on for loop?

i use the code blocks. please see these code:
1
2
3
4
5
6
7
8
9
10
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?
I don't believe you. Please provide a minimal example that reproduces the problem. That means, remove code until you are left with only the bug.
sorry i don't have another way for share the image:
https://onedrive.live.com/?id=C3EF456E15C8DEB6!1294&cid=C3EF456E15C8DEB6&group=0&parId=C3EF456E15C8DEB6!197&o=OneUp
(it's from my hotmail public folder)
realy.. see yourself, i never lie
That line hasn't executede yet, do one more step.
ne555: i had problems on button constructor too.
thanks for all
Topic archived. No new replies allowed.