Hi,
I have a problem that has been bugging me for days
i have 2 arrays
A=[GGGGG GG GGGG GG GGGGG G G G ]
B=[10101100010101010101010101010110]
both are same in length
i need to change Array B in such a way that when Array A has a blank, the same position in Array B changes into character 'P'
below are my codes,this is a subroutine and arrays are predefined
int ABC()
{
int i;
for (i=0;i<=32;i++)
{if A = " "
(B = "P"
}
}
Is there anything wrong with the logic or syntax? Pls help. thanks.
I have a problem that has been bugging me for days
i have 2 arrays
A=[GGGGG GG GGGG GG GGGGG G G G ]
B=[10101100010101010101010101010110]
both are same in length
i need to change Array B in such a way that when Array A has a blank, the same position in Array B changes into character 'P'
below are my codes,this is a subroutine and arrays are predefined
int ABC()
{
int i;
for (i=0;i<=32;i++)
{if A = " "
(B = "P"
}
}
Is there anything wrong with the logic or syntax? Pls help. thanks.