Posted By: ayks
argument in function - 09/22/11 18:26
hi,
here is my code :
it would be nice if i could write it easier..
i know use simple argument, but its a little more complicated here.
for automate the jaX+=a list, i could do smt like
but it can't work this way.. right ?
does anyone have a solution for do this thing ? (like the second quote but working)
thanks
here is my code :
Quote:
function mfj(a)
{
if (a==0)
{
ja1+=a;ja2+=a;ja3+=a;ja4+=a;ja5+=a;ja6+=a;ja7+=a;ja8+=a;ja9+=a;ja10+=a;
}
}
{
if (a==0)
{
ja1+=a;ja2+=a;ja3+=a;ja4+=a;ja5+=a;ja6+=a;ja7+=a;ja8+=a;ja9+=a;ja10+=a;
}
}
i know use simple argument, but its a little more complicated here.
for automate the jaX+=a list, i could do smt like
Quote:
i=0;
while (i<=10)
{
ja(i)+=a;i++;
}
while (i<=10)
{
ja(i)+=a;i++;
}
does anyone have a solution for do this thing ? (like the second quote but working)
thanks